CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/06/23 11:48:36

Modified files:
        lib/libc/asr   : getrrsetbyname.c 

Log message:
Avoid a bunch of useless checks, free(NULL) is valid.

While here, use a counter of type unsigned int, which is the same type
as rri_nrdatas in our termination condition. (In practice there can't
be more than 65k RRSets).

Andrew Griffiths pointed out that we'd leak memory if rri_rdatas or
rri_sigs are sparsely populated. In practice this will not happen but
it made me look.

OK deraadt

Reply via email to