mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
* srv.c (getsrv): Fix type-punning warning.
This commit is contained in:
parent
ab9a918bc2
commit
65b2edc202
@ -1,3 +1,7 @@
|
||||
2009-07-23 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* srv.c (getsrv): Fix type-punning warning.
|
||||
|
||||
2009-07-23 Werner Koch <wk@g10code.com>
|
||||
|
||||
* util.h (GPG_ERR_NOT_ENABLED): New.
|
||||
|
@ -59,6 +59,7 @@ getsrv(const char *name,struct srventry **list)
|
||||
int r,srvcount=0;
|
||||
unsigned char *pt,*emsg;
|
||||
u16 count,dlen;
|
||||
HEADER *header=(HEADER *)answer;
|
||||
|
||||
*list=NULL;
|
||||
|
||||
@ -66,8 +67,7 @@ getsrv(const char *name,struct srventry **list)
|
||||
if(r<sizeof(HEADER) || r>2048)
|
||||
return -1;
|
||||
|
||||
if((((HEADER *)answer)->rcode)==NOERROR &&
|
||||
(count=ntohs(((HEADER *)answer)->ancount)))
|
||||
if(header->rcode==NOERROR && (count=ntohs(header->ancount)))
|
||||
{
|
||||
int i,rc;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user