diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-10-06 21:17:56 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-10-06 21:17:56 +0200 |
commit | 79ddc4888a3003ddbe45f1552dac3fea5e0741d4 (patch) | |
tree | f482ac496d9cf27c5c874bce37207514c4d8079e /src/dns/dnsparser.c | |
parent | 954500e2e8aab9f87a497fd12bad018bd9703628 (diff) | |
download | gnunet-79ddc4888a3003ddbe45f1552dac3fea5e0741d4.tar.gz gnunet-79ddc4888a3003ddbe45f1552dac3fea5e0741d4.zip |
fix leak
Diffstat (limited to 'src/dns/dnsparser.c')
-rw-r--r-- | src/dns/dnsparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dns/dnsparser.c b/src/dns/dnsparser.c index 36b4c36f1..30d9245ff 100644 --- a/src/dns/dnsparser.c +++ b/src/dns/dnsparser.c | |||
@@ -1278,8 +1278,8 @@ GNUNET_DNSPARSER_hex_to_bin (const char *hex, | |||
1278 | in[2] = '\0'; | 1278 | in[2] = '\0'; |
1279 | for (off = 0; off < data_size; off++) | 1279 | for (off = 0; off < data_size; off++) |
1280 | { | 1280 | { |
1281 | in[0] = tolower ((int) hex[off * 2]); | 1281 | in[0] = tolower ((unsigned char) hex[off * 2]); |
1282 | in[1] = tolower ((int) hex[off * 2 + 1]); | 1282 | in[1] = tolower ((unsigned char) hex[off * 2 + 1]); |
1283 | if (1 != sscanf (in, "%x", &h)) | 1283 | if (1 != sscanf (in, "%x", &h)) |
1284 | return off; | 1284 | return off; |
1285 | idata[off] = (uint8_t) h; | 1285 | idata[off] = (uint8_t) h; |