From 85aa2f3a40054f78bd972b7ebc39458883c93dac Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Mon, 24 Apr 2006 15:37:19 +0000 Subject: [PATCH] check for sharedSecretID length greater than 0 before using --- c_micasadk/sscs_ndk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c_micasadk/sscs_ndk.c b/c_micasadk/sscs_ndk.c index 1c6ae31b..b15a865b 100644 --- a/c_micasadk/sscs_ndk.c +++ b/c_micasadk/sscs_ndk.c @@ -3096,7 +3096,7 @@ miCASAGetCredential } // 4. if still no secret, did caller pass in a suggested sharedSecretID? - if(rcode && sharedSecretID) + if(rcode && sharedSecretID && (sharedSecretID->len > 0)) { // let's look for it. secID.type = SSCS_CREDENTIAL_TYPE_F;