summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-11-30 19:52:27 +0100
committerVolker Lendecke <vl@sernet.de>2007-11-30 22:25:01 +0100
commit5ee27320ce9a662bc8c4f8e99ebbd88c0b3b6a47 (patch)
tree7baa2f6533e00655e2f56cfbff041eaed1f5208b /source3
parent22cf7f5ffa7f37be3c85d226c3477508f88eccd5 (diff)
downloadsamba-5ee27320ce9a662bc8c4f8e99ebbd88c0b3b6a47.tar.gz
samba-5ee27320ce9a662bc8c4f8e99ebbd88c0b3b6a47.tar.bz2
samba-5ee27320ce9a662bc8c4f8e99ebbd88c0b3b6a47.zip
domain_name is a ref pointer.
Guenther (This used to be commit b350e482b9b211caf08c22c7528b51e47b4a5cce)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/netapi/joindomain.c5
1 files changed, 5 insertions, 0 deletions
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);