mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-10 04:21:01 +00:00
Successfully fails if data buffer is too small
This commit is contained in:
parent
91c095e063
commit
50c9cb28ec
1 changed files with 1 additions and 1 deletions
|
@ -206,7 +206,7 @@ window_reassemble_data(struct frag_buffer *w, uint8_t *data, size_t maxlen, int
|
||||||
}
|
}
|
||||||
if (fraglen > maxlen) {
|
if (fraglen > maxlen) {
|
||||||
WDEBUG("Data buffer too small! Reassembled %lu bytes.", datalen);
|
WDEBUG("Data buffer too small! Reassembled %lu bytes.", datalen);
|
||||||
return datalen;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Move window along to avoid weird issues */
|
/* Move window along to avoid weird issues */
|
||||||
|
|
Loading…
Add table
Reference in a new issue