summaryrefslogtreecommitdiff
path: root/source4/nbt_server/wins
diff options
context:
space:
mode:
Diffstat (limited to 'source4/nbt_server/wins')
-rw-r--r--source4/nbt_server/wins/winsserver.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source4/nbt_server/wins/winsserver.c b/source4/nbt_server/wins/winsserver.c
index 449a11f4fc..d6eeb69ada 100644
--- a/source4/nbt_server/wins/winsserver.c
+++ b/source4/nbt_server/wins/winsserver.c
@@ -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;
}