1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r12647: make use of the str_list_add function

metze
(This used to be commit e47873a1a3)
This commit is contained in:
Stefan Metzmacher 2005-12-31 11:19:18 +00:00 committed by Gerald (Jerry) Carter
parent 706ef631f7
commit 24c54281a9

View File

@ -601,13 +601,11 @@ static void nbtd_winsserver_query(struct nbt_name_socket *nbtsock,
* the record is released or tombstoned
*/
if (rec->type == WREPL_TYPE_GROUP) {
addresses = talloc_array(packet, const char *, 2);
if (addresses == NULL) {
nbtd_negative_name_query_reply(nbtsock, packet, src);
return;
addresses = str_list_add(NULL, "255.255.255.255");
talloc_steal(packet, addresses);
if (!addresses) {
goto notfound;
}
addresses[0] = "255.255.255.255";
addresses[1] = NULL;
goto found;
}