mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r13983: Fix Coverity bug # 111
(This used to be commit 08d7fd31ab250bc6ba3922b36aa7b0cfef1e5bf1)
This commit is contained in:
parent
5f76ee419e
commit
dece1a2db2
@ -1082,6 +1082,7 @@ static int get_server_info(uint32 servertype,
|
||||
*servers = SMB_REALLOC_ARRAY(*servers,struct srv_info_struct, alloced);
|
||||
if (!*servers) {
|
||||
DEBUG(0,("get_server_info: failed to enlarge servers info struct!\n"));
|
||||
file_lines_free(lines);
|
||||
return 0;
|
||||
}
|
||||
memset((char *)((*servers)+count),'\0',sizeof(**servers)*(alloced-count));
|
||||
|
Loading…
x
Reference in New Issue
Block a user