X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=source%2Futils%2Fnet_rpc.c;h=945ca38d8bb72a515c084d22c4d75461cde4e301;hb=40712b9ab1e915d405db45e2f18c72a9957158a9;hp=ef1ebd3491ff5c952e6225e8ced80b959c33a220;hpb=a3c79bd8d09262257cf8c025753332fb639fc09e;p=metze%2Fsamba%2Fwip.git diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c index ef1ebd3491ff..945ca38d8bb7 100644 --- a/source/utils/net_rpc.c +++ b/source/utils/net_rpc.c @@ -5201,7 +5201,7 @@ NTSTATUS rpc_init_shutdown_internals(const DOM_SID *domain_sid, struct initshutdown_String msg_string; struct initshutdown_String_sub s; - if (opt_comment) { + if (opt_comment && strlen(opt_comment)) { msg = opt_comment; } if (opt_timeout) { @@ -5255,7 +5255,7 @@ NTSTATUS rpc_reg_shutdown_internals(const DOM_SID *domain_sid, NTSTATUS result; WERROR werr; - if (opt_comment) { + if (opt_comment && strlen(opt_comment)) { msg = opt_comment; } s.name = msg;