[ldns-users] rrlist issue

Henri Asseily henri at asseily.com
Mon Jul 13 17:28:08 UTC 2009


In ldns 1.5.x I have an issue with an exception being caught if  
there's no data in the rrlist and I try to count its rrs. My code  
needs to do:

@try {
	ldns_rr_list_rr_count(rrlist);
}
@catch (NSException * e) {
	// Exception is caught if there's no data in the rrlist,
	// i.e. if there are no records.
	// TODO: See in ldns rr.c source why ldns_rr_list_rr_count() fails  
and doesn't return 0
	// In the meantime, disable the error
}

Haven't had time yet to check 1.6, sorry.

H



More information about the ldns-users mailing list