From 23cfe019e99f54a229b0eeb68d4afb1a788b2886 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Thu, 26 Jan 2006 16:51:04 +0000 Subject: [PATCH] * 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/ChangeLog | 7 +++++++ util/cert.c | 2 ++ util/srv.c | 5 +++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/util/ChangeLog b/util/ChangeLog index 9b596cebe..624dbaedc 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,10 @@ +2006-01-26 David Shaw + + * 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. + 2005-12-24 David Shaw * cert.c (get_cert): Properly chase down CNAMEs pointing to CERTs. diff --git a/util/cert.c b/util/cert.c index 11a30161e..e37544e01 100644 --- a/util/cert.c +++ b/util/cert.c @@ -134,6 +134,7 @@ get_cert(const char *name,size_t max_size,IOBUF *iobuf,char **url) ret=1; break; } +#if 0 else if(ctype==6 && dlen<1023 && url) { /* Sanity check the IPGP URL type that the URL isn't too @@ -145,6 +146,7 @@ get_cert(const char *name,size_t max_size,IOBUF *iobuf,char **url) ret=2; break; } +#endif /* Neither type matches, so go around to the next answer. */ pt+=dlen; 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 &&