From 23cfe019e99f54a229b0eeb68d4afb1a788b2886 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Thu, 26 Jan 2006 16:51:04 +0000 Subject: * cert.c (get_cert): Disable IPGP types for now until the format questions in the draft are settled. * srv.c (getsrv): Error on oversize SRV responses. --- util/srv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'util/srv.c') diff --git a/util/srv.c b/util/srv.c index 21f1d9ade..95187dbc8 100644 --- a/util/srv.c +++ b/util/srv.c @@ -42,7 +42,8 @@ #define T_SRV 33 #endif -static int priosort(const void *a,const void *b) +static int +priosort(const void *a,const void *b) { const struct srventry *sa=a,*sb=b; if(sa->priority>sb->priority) @@ -64,7 +65,7 @@ getsrv(const char *name,struct srventry **list) *list=NULL; r=res_query(name,C_IN,T_SRV,answer,PACKETSZ); - if(rPACKETSZ) return -1; if((((HEADER *)answer)->rcode)==NOERROR && -- cgit v1.2.3