aboutsummaryrefslogtreecommitdiff
path: root/src/hello
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-11 09:46:59 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-11 09:46:59 +0000
commit02797a87cc6629b6a2f9d828489b565d882bf818 (patch)
treedab22d032d693b9cdfebbf8cee8d8591318d6c49 /src/hello
parentdaf693cbd4f1a9462683265f020f633de149e725 (diff)
downloadgnunet-02797a87cc6629b6a2f9d828489b565d882bf818.tar.gz
gnunet-02797a87cc6629b6a2f9d828489b565d882bf818.zip
fix overflow
Diffstat (limited to 'src/hello')
-rw-r--r--src/hello/hello.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hello/hello.c b/src/hello/hello.c
index 06142535b..abcc25c71 100644
--- a/src/hello/hello.c
+++ b/src/hello/hello.c
@@ -126,7 +126,7 @@ get_hello_address_size (const char *buf, size_t max, uint16_t * ralen)
126 pos++; 126 pos++;
127 slen++; 127 slen++;
128 } 128 }
129 if ('\0' != *pos) 129 if (left == 0)
130 { 130 {
131 /* 0-termination not found */ 131 /* 0-termination not found */
132 GNUNET_break_op (0); 132 GNUNET_break_op (0);