summaryrefslogtreecommitdiff
path: root/source3/libsmb/libsmbclient.c
diff options
context:
space:
mode:
authorGerald (Jerry) Carter <jerry@samba.org>2007-11-01 21:30:43 -0400
committerGerald (Jerry) Carter <jerry@samba.org>2007-11-01 21:30:43 -0400
commit31286b302a4c42b9e878a9531604ea87b35dd8a9 (patch)
treee8a081f44d3d89da895902a44492a8fb8cae64da /source3/libsmb/libsmbclient.c
parent88ee61625a5de5e443d14c54eab91a90d87cda85 (diff)
parent8bad80efb016dbd1aa392bbbc2b954d4dc9e3906 (diff)
downloadsamba-31286b302a4c42b9e878a9531604ea87b35dd8a9.tar.gz
samba-31286b302a4c42b9e878a9531604ea87b35dd8a9.tar.bz2
samba-31286b302a4c42b9e878a9531604ea87b35dd8a9.zip
Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
(This used to be commit 779353b86d1699324149896f1ffa237c6ebe46ec)
Diffstat (limited to 'source3/libsmb/libsmbclient.c')
-rw-r--r--source3/libsmb/libsmbclient.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index 0b45cad3e1..ff434d275a 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/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;
}