diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-11 09:46:59 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-11 09:46:59 +0000 |
commit | 02797a87cc6629b6a2f9d828489b565d882bf818 (patch) | |
tree | dab22d032d693b9cdfebbf8cee8d8591318d6c49 /src/hello | |
parent | daf693cbd4f1a9462683265f020f633de149e725 (diff) | |
download | gnunet-02797a87cc6629b6a2f9d828489b565d882bf818.tar.gz gnunet-02797a87cc6629b6a2f9d828489b565d882bf818.zip |
fix overflow
Diffstat (limited to 'src/hello')
-rw-r--r-- | src/hello/hello.c | 2 |
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); |