summaryrefslogtreecommitdiff
path: root/source3/utils/net_rap.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-11 22:21:27 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:16 -0500
commit3b6f14990aae363f8cc370af8b4a3f977d304516 (patch)
tree40237d47aba2a682a9bcd6b103563339743cf92e /source3/utils/net_rap.c
parentde106cf70277dc9516b15b2f3c847f993b11525f (diff)
downloadsamba-3b6f14990aae363f8cc370af8b4a3f977d304516.tar.gz
r14214: Fix Coverity Bug # 57
(This used to be commit 32364d8f01c75bd00ee1bef49c687d6dd3299d1f)
Diffstat (limited to 'source3/utils/net_rap.c')
-rw-r--r--source3/utils/net_rap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c
index e80beb36456..ef5df435357 100644
--- a/source3/utils/net_rap.c
+++ b/source3/utils/net_rap.c
@@ -200,6 +200,10 @@ static int rap_share_add(int argc, const char **argv)
sharename = SMB_STRDUP(argv[0]);
p = strchr(sharename, '=');
+ if (p == NULL) {
+ d_printf("Server path not specified\n");
+ return net_rap_share_usage(argc, argv);
+ }
*p = 0;
strlcpy(sinfo.share_name, sharename, sizeof(sinfo.share_name));
sinfo.reserved1 = '\0';