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:
parent
94f2c35a68
commit
b481abf591
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user