diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-04-02 00:17:03 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-04-02 00:17:03 +0000 |
commit | 9ad1ddc793ff383c2cc05cf3b15a9eb95e7a251d (patch) | |
tree | 58349bd01c7accd0c9c44cf870958dc70412268f /source3 | |
parent | d8c1c54d3e8e75df4fc363b7bd0bc11d8bbe53ac (diff) | |
download | samba-9ad1ddc793ff383c2cc05cf3b15a9eb95e7a251d.tar.gz samba-9ad1ddc793ff383c2cc05cf3b15a9eb95e7a251d.tar.bz2 samba-9ad1ddc793ff383c2cc05cf3b15a9eb95e7a251d.zip |
Don't set zero length for the base64 decoded string (fixes swat auth).
Andrew Bartlett
(This used to be commit 7ab39cba6a97ddd0879dd968167fc7809f87de6e)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_str.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index 4d955c59a7..e2f9f19f58 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -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); } /** |