Skip to content
Commit f2aaf18a authored by Jan Palus's avatar Jan Palus Committed by Florian Weimer
Browse files

resolv: free only initialized items from gai pool



pool_max_size denotes total allocated rows in pool but possibly not yet
initialized. it's pool_size that represents number of actually occupied
rows hence use it when freeing pool to avoid freeing random addresses.

Signed-off-by: default avatarJan Palus <jpalus@fastmail.com>
Reviewed-by: default avatarFlorian Weimer <fweimer@redhat.com>
parent cfb5a97a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment