summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-06-08 09:45:21 +0200
committerVolker Lendecke <vl@samba.org>2009-06-08 09:53:20 +0200
commitbb4cffbd97793c9ea1001571639ff12348644ae4 (patch)
tree03052ba613a739153a525d7ca1c1f0bf5b13a2e1
parentbccef8251654f52751ad65e9906323a73c47fdb4 (diff)
downloadsamba-bb4cffbd97793c9ea1001571639ff12348644ae4.tar.gz
samba-bb4cffbd97793c9ea1001571639ff12348644ae4.tar.bz2
samba-bb4cffbd97793c9ea1001571639ff12348644ae4.zip
Fix bug 6449
Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!
-rw-r--r--source3/utils/net_rap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c
index dd757abd1a..573f18db60 100644
--- a/source3/utils/net_rap.c
+++ b/source3/utils/net_rap.c
@@ -822,7 +822,7 @@ static int rap_user_add(struct net_context *c, int argc, const char **argv)
userinfo.userflags = c->opt_flags;
userinfo.reserved1 = '\0';
- userinfo.comment = smb_xstrdup(c->opt_comment);
+ userinfo.comment = smb_xstrdup(c->opt_comment ? c->opt_comment : "");
userinfo.priv = 1;
userinfo.home_dir = NULL;
userinfo.logon_script = NULL;