summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 73c37f5)
raw | patch | inline | side by side (parent: 73c37f5)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 10 Dec 2013 08:11:53 +0000 (09:11 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 10 Dec 2013 08:11:53 +0000 (09:11 +0100) |
src/utils/proto.c | patch | blob | history |
diff --git a/src/utils/proto.c b/src/utils/proto.c
index e9e3e6c7ca9984396a2c55bb4b299cd3be34ef4a..85a4cb849f3a5457ec14859306fcb93a38e8b38d 100644 (file)
--- a/src/utils/proto.c
+++ b/src/utils/proto.c
return UINT32_MAX;
/* not enough data to read */
- if (offset + sizeof(uint32_t) < sdb_strbuf_len(buf))
+ if (offset + sizeof(uint32_t) > sdb_strbuf_len(buf))
return UINT32_MAX;
data = sdb_strbuf_string(buf);