mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r13892: Doh ! My bugfix had a bug :-). Spotted by Willi Mann <willi@wm1.at>,
if rrec can be null make sure we *never* deref it. Jeremy.
This commit is contained in:
parent
46e1098092
commit
d6d7a5ac62
@ -47,11 +47,11 @@ static void wins_proxy_name_query_request_success( struct subnet_record *subrec,
|
||||
memcpy( (char *)&original_packet, &userdata->data[sizeof(struct subnet_record *)],
|
||||
sizeof(struct packet_struct *) );
|
||||
|
||||
nb_flags = get_nb_flags( rrec->rdata );
|
||||
|
||||
if (rrec) {
|
||||
nb_flags = get_nb_flags( rrec->rdata );
|
||||
num_ips = rrec->rdlength / 6;
|
||||
} else {
|
||||
nb_flags = 0;
|
||||
num_ips = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user