SWAT: 401 username or password incorrect

Peter Van Biesen peter.vanbiesen at vlafo.be
Mon Apr 7 12:36:25 GMT 2003


Sorry, some more information : samba 3.0 b23, file lib/util.str.c line 1658

Peter Van Biesen wrote:

> Hi,
>
> I found an error in the base64_decode_inline function. The 
> decoded.length is used AFTER the data_blob_free. This effectively 
> empties the decoded string. Corrected function :
>
> void base64_decode_inplace(char *s)
> {
>         DATA_BLOB decoded = base64_decode_data_blob(s);
>         memcpy(s, decoded.data, decoded.length);
>
>     /* null terminate */
>         s[decoded.length] = '\0';
>
>         data_blob_free(&decoded);
> }
>
> Can anyone check this in ? ( I have no cvs access )
>
> Thanks !
>
> Peter.
>

-- 
Peter Van Biesen
Adj. Sysadmin V.F.S.I.P.H.

tel: +32 (0) 2 225 85 70
fax: +32 (0) 2 225 85 88
e-mail: peter.vanbiesen at vlafo.be




More information about the samba-technical mailing list