1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

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.
This commit is contained in:
Volker Lendecke 2007-10-20 11:12:11 +02:00 committed by Jeremy Allison
parent 94f2c35a68
commit b481abf591

View File

@ -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;
}