aboutsummaryrefslogtreecommitdiffstats
path: root/common/srv.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/srv.c')
-rw-r--r--common/srv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/srv.c b/common/srv.c
index a39305937..9c8977e8e 100644
--- a/common/srv.c
+++ b/common/srv.c
@@ -1,5 +1,5 @@
/* srv.c - DNS SRV code
- * Copyright (C) 2003 Free Software Foundation, Inc.
+ * Copyright (C) 2003, 2009 Free Software Foundation, Inc.
*
* This file is part of GNUPG.
*
@@ -55,15 +55,15 @@ priosort(const void *a,const void *b)
int
getsrv(const char *name,struct srventry **list)
{
- unsigned char answer[PACKETSZ];
+ unsigned char answer[2048];
int r,srvcount=0;
unsigned char *pt,*emsg;
u16 count,dlen;
*list=NULL;
- r=res_query(name,C_IN,T_SRV,answer,PACKETSZ);
- if(r<sizeof(HEADER) || r>PACKETSZ)
+ r=res_query(name,C_IN,T_SRV,answer,2048);
+ if(r<sizeof(HEADER) || r>2048)
return -1;
if((((HEADER *)answer)->rcode)==NOERROR &&