1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* 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.
This commit is contained in:
David Shaw 2006-01-26 16:51:04 +00:00
parent 214a3a646e
commit 23cfe019e9
3 changed files with 12 additions and 2 deletions

View file

@ -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(r<sizeof(HEADER))
if(r<sizeof(HEADER) || r>PACKETSZ)
return -1;
if((((HEADER *)answer)->rcode)==NOERROR &&