From: Christian Grothoff Date: Fri, 11 Jun 2010 09:46:59 +0000 (+0000) Subject: fix overflow X-Git-Tag: initial-import-from-subversion-38251~21428 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=02797a87cc6629b6a2f9d828489b565d882bf818;p=oweals%2Fgnunet.git fix overflow --- 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) pos++; slen++; } - if ('\0' != *pos) + if (left == 0) { /* 0-termination not found */ GNUNET_break_op (0);