diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-16 14:02:03 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-16 14:02:03 +0000 |
commit | 805c5cf9d9db6c6cafdf635f49c98154a485dac2 (patch) | |
tree | 331da896f4d7bb0e0d11d973ea02b31196ec56ae /src/vpn | |
parent | 506cb3b9fe101f0bf9dddfac0581bdbedf9a0c06 (diff) | |
download | gnunet-805c5cf9d9db6c6cafdf635f49c98154a485dac2.tar.gz gnunet-805c5cf9d9db6c6cafdf635f49c98154a485dac2.zip |
out of bounds, constant not named, c3042
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-service-dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpn/gnunet-service-dns.c b/src/vpn/gnunet-service-dns.c index 80cbbbd16..72b58f755 100644 --- a/src/vpn/gnunet-service-dns.c +++ b/src/vpn/gnunet-service-dns.c | |||
@@ -93,7 +93,7 @@ static struct | |||
93 | uint16_t local_port; | 93 | uint16_t local_port; |
94 | char *name; | 94 | char *name; |
95 | uint8_t namelen; | 95 | uint8_t namelen; |
96 | } query_states[UINT16_MAX]; | 96 | } query_states[UINT16_MAX+1]; |
97 | 97 | ||
98 | /** | 98 | /** |
99 | * A struct used to give more than one value as | 99 | * A struct used to give more than one value as |
@@ -1383,7 +1383,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server, | |||
1383 | 1383 | ||
1384 | unsigned int i; | 1384 | unsigned int i; |
1385 | 1385 | ||
1386 | for (i = 0; i < 65536; i++) | 1386 | for (i = 0; i < UINT16_MAX + 1; i++) |
1387 | { | 1387 | { |
1388 | query_states[i].valid = GNUNET_NO; | 1388 | query_states[i].valid = GNUNET_NO; |
1389 | } | 1389 | } |