projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
updates.
[silc.git]
/
lib
/
silccore
/
silcchannel.c
diff --git
a/lib/silccore/silcchannel.c
b/lib/silccore/silcchannel.c
index 6bab3c22b87409b81408c9943c6c96e5f206faec..fef7a197cd482787af40d732e44fa6e53cc1c35d 100644
(file)
--- a/
lib/silccore/silcchannel.c
+++ b/
lib/silccore/silcchannel.c
@@
-335,7
+335,7
@@
silc_channel_message_payload_parse(unsigned char *payload,
if (ret == -1)
goto err;
- if (new->data_len
< 1 || new->data_len
> buffer.len) {
+ if (new->data_len > buffer.len) {
SILC_LOG_ERROR(("Incorrect channel message payload in packet, "
"packet dropped"));
goto err;