summaryrefslogtreecommitdiff
path: root/source3/lib/netapi/examples/getdc/getdc.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-17 10:39:15 +0100
committerGünther Deschner <gd@samba.org>2008-01-17 16:54:46 +0100
commitd1abd4d866b59fa67605fc469d6406a981455fbe (patch)
treefcaf03782706b94beb1e24e908d1afaf46ac6adb /source3/lib/netapi/examples/getdc/getdc.c
parent10a55fb4ea8cbfec5b58fb00389ff4d48e4e527e (diff)
downloadsamba-d1abd4d866b59fa67605fc469d6406a981455fbe.tar.gz
samba-d1abd4d866b59fa67605fc469d6406a981455fbe.tar.bz2
samba-d1abd4d866b59fa67605fc469d6406a981455fbe.zip
Use new pidl-generated netlogon client calls in NetApi GetDcName().
Guenther (This used to be commit 733e07a06ce3c903ff5837df6a5119f6d6e3eccb)
Diffstat (limited to 'source3/lib/netapi/examples/getdc/getdc.c')
-rw-r--r--source3/lib/netapi/examples/getdc/getdc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/netapi/examples/getdc/getdc.c b/source3/lib/netapi/examples/getdc/getdc.c
index cdd4d0b3b4..272ba1088e 100644
--- a/source3/lib/netapi/examples/getdc/getdc.c
+++ b/source3/lib/netapi/examples/getdc/getdc.c
@@ -29,7 +29,7 @@ int main(int argc, char **argv)
{
NET_API_STATUS status;
struct libnetapi_ctx *ctx = NULL;
- uint8_t *buffer;
+ uint8_t *buffer = NULL;
if (argc < 3) {
printf("usage: getdc <hostname> <domain>\n");
@@ -50,7 +50,7 @@ int main(int argc, char **argv)
} else {
printf("%s\n", (char *)buffer);
}
-
+ NetApiBufferFree(buffer);
libnetapi_free(ctx);
return status;