diff options
-rw-r--r-- | source4/rpc_server/winreg/rpc_winreg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c index 2cbac091bb6..400041451fe 100644 --- a/source4/rpc_server/winreg/rpc_winreg.c +++ b/source4/rpc_server/winreg/rpc_winreg.c @@ -209,7 +209,8 @@ static WERROR winreg_EnumValue(struct dcesrv_call_state *dce_call, TALLOC_CTX *m } /* check the client has enough room for the value */ - if (r->in.size != NULL && + if (r->in.value != NULL && + r->in.size != NULL && value->data_len > *r->in.size) { return WERR_MORE_DATA; } |