From: Volker Lendecke Date: Mon, 8 Jun 2009 07:45:21 +0000 (+0200) Subject: Fix bug 6449 X-Git-Tag: tdb-1.1.5~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb4cffbd97793c9ea1001571639ff12348644ae4;p=thirdparty%2Fsamba.git Fix bug 6449 Thanks to TAKAHASHI Motonobu for reporting! --- diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c index dd757abd1ac..573f18db60e 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;