mirror of
https://github.com/samba-team/samba.git
synced 2024-12-29 11:21:54 +03:00
parent
afa960cbbc
commit
f289851d70
@ -551,9 +551,11 @@ bool parse_logentry( TALLOC_CTX *mem_ctx, char *line, struct eventlog_Record_tdb
|
|||||||
entry->sid_length = rpcstr_push_talloc(mem_ctx,
|
entry->sid_length = rpcstr_push_talloc(mem_ctx,
|
||||||
&dummy,
|
&dummy,
|
||||||
stop);
|
stop);
|
||||||
|
if (entry->sid_length == (uint32_t)-1) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
entry->sid = data_blob_talloc(mem_ctx, dummy, entry->sid_length);
|
entry->sid = data_blob_talloc(mem_ctx, dummy, entry->sid_length);
|
||||||
if (entry->sid_length == (uint32_t)-1 ||
|
if (entry->sid.data == NULL) {
|
||||||
entry->sid.data == NULL) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if ( 0 == strncmp( start, "STR", stop - start ) ) {
|
} else if ( 0 == strncmp( start, "STR", stop - start ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user