mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
r12619: make sure we don't return more than 25 addresses, as w2k3 crashes in that case
I still need to make sure we didn't write such records to our database... metze (This used to be commit d0dc0ffa3160041e137b629b4dbbe821044edfe3)
This commit is contained in:
parent
905c3ff8e1
commit
5a26b2d72b
@ -479,6 +479,10 @@ NTSTATUS winsdb_record(struct winsdb_handle *h, struct ldb_message *msg, TALLOC_
|
||||
goto failed;
|
||||
}
|
||||
}
|
||||
if (num_values > 25) {
|
||||
status = NT_STATUS_INTERNAL_DB_CORRUPTION;
|
||||
goto failed;
|
||||
}
|
||||
|
||||
rec->addresses = talloc_array(rec, struct winsdb_addr *, num_values+1);
|
||||
if (rec->addresses == NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user