mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Fix error handling in decode_base64()
This commit is contained in:
parent
b6def63167
commit
e34562df48
3 changed files with 8 additions and 2 deletions
|
@ -230,7 +230,9 @@ BroString* decode_base64(const BroString* s, const BroString* a, Connection* con
|
|||
char* rbuf2, *rbuf = new char[rlen];
|
||||
|
||||
Base64Converter dec(conn, a ? a->CheckString() : "");
|
||||
if ( dec.Decode(s->Len(), (const char*) s->Bytes(), &rlen, &rbuf) == -1 )
|
||||
dec.Decode(s->Len(), (const char*) s->Bytes(), &rlen, &rbuf);
|
||||
|
||||
if ( dec.Errored() )
|
||||
goto err;
|
||||
|
||||
rlen2 = buf_len - rlen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue