diff options
author | Volker Lendecke <vl@samba.org> | 2009-06-08 10:05:11 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-06-08 10:08:33 +0200 |
commit | b5ac1068d13ffc83369d8dc7637a4c482d2815dc (patch) | |
tree | 21e4a551abb6312a1b690a50346812cb50e8071c /source3 | |
parent | 054ef88b036cd1601ac658f004bc9889a302f119 (diff) | |
download | samba-b5ac1068d13ffc83369d8dc7637a4c482d2815dc.tar.gz samba-b5ac1068d13ffc83369d8dc7637a4c482d2815dc.tar.bz2 samba-b5ac1068d13ffc83369d8dc7637a4c482d2815dc.zip |
Further fix for 6449
Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_rap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c index 88db5122b1..a43840aac4 100644 --- a/source3/utils/net_rap.c +++ b/source3/utils/net_rap.c @@ -963,7 +963,7 @@ static int rap_group_add(struct net_context *c, int argc, const char **argv) /* BB check for length 21 or smaller explicitly ? BB */ safe_strcpy(grinfo.group_name, argv[0], sizeof(grinfo.group_name)-1); grinfo.reserved1 = '\0'; - grinfo.comment = smb_xstrdup(c->opt_comment); + grinfo.comment = smb_xstrdup(c->opt_comment ? c->opt_comment : ""); ret = cli_NetGroupAdd(cli, &grinfo); cli_shutdown(cli); |