Huw Davies (@huw) commented about server/registry.c:
{ struct key *key, *parent = NULL; struct unicode_str name;
- const char *req_data;
- data_size_t req_data_len;
- char *filename; const struct security_descriptor *sd; const struct object_attributes *objattr = get_req_object_attributes( &sd, &name, NULL );
- req_data = get_req_data_after_objattr( objattr, &req_data_len );
This should be called after the test for objattr below. Also, although the code would work if req_data is NULL, it would be better to test for that too.