SCA len is null when not provided
authorPhilippe Nunes <philippe.nunes@linux.intel.com>
Sat, 16 Mar 2013 10:33:47 +0000 (11:33 +0100)
committerwootak.jung <wootak.jung@samsung.com>
Sun, 24 Mar 2013 09:03:13 +0000 (18:03 +0900)
src/util.c

index 870c88b..0f413ef 100644 (file)
@@ -1149,7 +1149,7 @@ int tcore_util_pdu_encode(const unsigned char *sca, const unsigned char *tpdu,
 
        if (sca[0] == 0) {
                converted_sca[0] = 0;
-               sca_len = 1;
+               sca_len = 0;
 
                goto out;
        }