1
0
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:
Günther Deschner 2007-11-30 02:16:46 +01:00
parent 7557964bee
commit b05ffb5065

View File

@ -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;
}