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:
parent
214a3a646e
commit
23cfe019e9
3 changed files with 12 additions and 2 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue