Fix bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.
commit2d41b1ab78639abe4ae030ff482573f464564dd7
authorJeremy Allison <jra@samba.org>
Sat, 16 Jan 2010 01:22:35 +0000 (15 17:22 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 16 Jan 2010 01:22:35 +0000 (15 17:22 -0800)
tree8ef39743081f20d0b838d4a92b40531088782a2b
parenta56ede9027125aa9e70358661b2db1e9f993e939
Fix bug 7045 - Bad (non memory copying) interfaces in smbc_setXXXX calls.

In smbc_free_context libsmbclient just called free() on the string options
so it assumes the callers have malloced them before setting them via smbc_set
calls.

Change to corretly malloc/free string options to the library.

Jeremy
source3/libsmb/libsmb_context.c
source3/libsmb/libsmb_setget.c