libwbclient: Make wbcResolveWinsByIP not use talloc
authorVolker Lendecke <vl@samba.org>
Sat, 3 Apr 2010 13:03:49 +0000 (15:03 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 19 Apr 2010 12:27:19 +0000 (14:27 +0200)
nsswitch/libwbclient/wbc_util.c

index 38fd1c555928286949f28d19be58bafb68c972c1..35e0b0b31644926849657f8965211396b5332e04 100644 (file)
@@ -260,7 +260,7 @@ wbcErr wbcResolveWinsByIP(const char *ip, char **name)
 
        /* Display response */
 
-       name_str = talloc_strdup(NULL, response.data.winsresp);
+       name_str = wbcStrDup(response.data.winsresp);
        BAIL_ON_PTR_ERROR(name_str, wbc_status);
 
        *name = name_str;