From 462ec83bbffdad4c855aea76b7fa005beafd5e06 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 18 Nov 2008 23:10:22 +0100 Subject: [PATCH] Fix Bug #5898. ("net rpc shutdown" fails). Guenther (cherry picked from commit 40712b9ab1e915d405db45e2f18c72a9957158a9) --- source/utils/net_rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/utils/net_rpc.c b/source/utils/net_rpc.c index ef1ebd3491f..945ca38d8bb 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; -- 2.11.4.GIT