summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/winreg/rpc_winreg.c3
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 2cbac091bb..400041451f 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;
}