The branch, v3-2-test has been updated via b481abf5914dcafe5642c4d9394d02603e905bbb (commit) from 94f2c35a683eace7f9f3dad9748aaec93f7c534f (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log ----------------------------------------------------------------- commit b481abf5914dcafe5642c4d9394d02603e905bbb Author: Volker Lendecke <[EMAIL PROTECTED]> Date: Sat Oct 20 11:12:11 2007 +0200 Fix for bug 5021 This is a different fix than the bug reporter (Evgeniy Dushistov <dushistov at mail.ru>, thanks!) created, but it lives without the boolean status variable. Untested so far, but I can not add attachments to bugs right now. But to me this looks really obvious. ----------------------------------------------------------------------- Summary of changes: source/libsmb/libsmbclient.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/libsmb/libsmbclient.c b/source/libsmb/libsmbclient.c index 0b45cad..ff434d2 100644 --- a/source/libsmb/libsmbclient.c +++ b/source/libsmb/libsmbclient.c @@ -2671,7 +2671,11 @@ smbc_opendir_ctx(SMBCCTX *context, return NULL; } - ip_list = &server_addr; + ip_list = memdup(&server_addr, sizeof(server_addr)); + if (ip_list == NULL) { + errno = ENOMEM; + return NULL; + } count = 1; } -- Samba Shared Repository