mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
nmbd: Fix request data data processing.
answers->rdata is an array and will never be NULL. Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
parent
742296d3c3
commit
52530f5c61
@ -194,7 +194,7 @@ static void domain_master_node_status_success(struct subnet_record *subrec,
|
||||
/* Go through the list of names found at answers->rdata and look for
|
||||
the first SERVER<0x20> name. */
|
||||
|
||||
if(answers->rdata != NULL) {
|
||||
if (answers->rdlength > 0) {
|
||||
char *p = answers->rdata;
|
||||
int numnames = CVAL(p, 0);
|
||||
|
||||
@ -416,7 +416,7 @@ static void get_domain_master_name_node_status_success(struct subnet_record *sub
|
||||
* the first WORKGROUP<0x1b> name.
|
||||
*/
|
||||
|
||||
if(answers->rdata != NULL) {
|
||||
if (answers->rdlength > 0) {
|
||||
char *p = answers->rdata;
|
||||
int numnames = CVAL(p, 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user