libsmbclient threadsafeness
Igor Belyi
sambauser at katehok.ac93.org
Thu Oct 21 02:08:39 GMT 2004
Michael B Allen wrote:
>Igor Belyi said:
>
>
>>Yea, talking about '*not* Ok functions'... pull_ascii_fstring() is not a
>>thread-safe. Just look at the convert_string_allocate() it uses...
>>
>>
>
>Actually aside from what looks like a conv_handles initialization race I
>don't see anything wrong with it.
>
>
Well.. I was refering to 'errno' which is used as an error reason in
convert_string_allocate and as an error indicator in smb_iconv(). Global
variables are not very friendly in multithreaded environment.
Igor
More information about the samba-technical
mailing list