diff options
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 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'; |