From 5ee27320ce9a662bc8c4f8e99ebbd88c0b3b6a47 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 30 Nov 2007 19:52:27 +0100 Subject: domain_name is a ref pointer. Guenther (This used to be commit b350e482b9b211caf08c22c7528b51e47b4a5cce) --- source3/lib/netapi/joindomain.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/lib/netapi/joindomain.c b/source3/lib/netapi/joindomain.c index fe05297ee1..bf2f8fce7e 100644 --- a/source3/lib/netapi/joindomain.c +++ b/source3/lib/netapi/joindomain.c @@ -45,6 +45,11 @@ WERROR NetJoinDomain(const char *server_name, goto done; } + if (!domain_name) { + werr = WERR_INVALID_PARAM; + goto done; + } + status = net_make_ipc_connection_ex(domain_name, server_name, NULL, 0, &cli); -- cgit