mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
Don't set zero length for the base64 decoded string (fixes swat auth).
Andrew Bartlett
This commit is contained in:
parent
a4d7496994
commit
7ab39cba6a
@ -1662,10 +1662,10 @@ void base64_decode_inplace(char *s)
|
||||
{
|
||||
DATA_BLOB decoded = base64_decode_data_blob(s);
|
||||
memcpy(s, decoded.data, decoded.length);
|
||||
data_blob_free(&decoded);
|
||||
|
||||
/* null terminate */
|
||||
s[decoded.length] = '\0';
|
||||
|
||||
data_blob_free(&decoded);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user