1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

Fix _reg_perfcount_get_instance_info()

Guenther
This commit is contained in:
Günther Deschner 2007-11-30 02:16:46 +01:00
parent 7539fb4c84
commit 20c1ba23f2

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