diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-03-11 22:21:27 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:15:16 -0500 |
commit | 3b6f14990aae363f8cc370af8b4a3f977d304516 (patch) | |
tree | 40237d47aba2a682a9bcd6b103563339743cf92e /source3/utils | |
parent | de106cf70277dc9516b15b2f3c847f993b11525f (diff) | |
download | samba-3b6f14990aae363f8cc370af8b4a3f977d304516.tar.gz samba-3b6f14990aae363f8cc370af8b4a3f977d304516.tar.bz2 samba-3b6f14990aae363f8cc370af8b4a3f977d304516.zip |
r14214: Fix Coverity Bug # 57
(This used to be commit 32364d8f01c75bd00ee1bef49c687d6dd3299d1f)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c index e80beb3645..ef5df43535 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'; |