mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
Fix _reg_perfcount_get_instance_info()
Guenther (This used to be commit 20c1ba23f2e2902ef7c2237c63addfef2ae75eac)
This commit is contained in:
parent
7557964bee
commit
b05ffb5065
@ -714,7 +714,7 @@ bool _reg_perfcount_get_instance_info(PERF_INSTANCE_DEFINITION *inst,
|
||||
memcpy(buf, data.dptr, MIN(PERFCOUNT_MAX_LEN-1,data.dsize));
|
||||
buf[PERFCOUNT_MAX_LEN-1] = '\0';
|
||||
inst->NameLength = rpcstr_push_talloc(ps->mem_ctx, &name, buf);
|
||||
if (inst->NameLength == (size_t)-1 || !name) {
|
||||
if (inst->NameLength == (uint32_t)-1 || !name) {
|
||||
SAFE_FREE(data.dptr);
|
||||
return False;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user