1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

No point in defaulting try-dns-srv to on if we don't have SRV support.

* keyserver/gpgkeys_hkp.c (main): Only default try-dns-srv to on if we
  have SRV support in the first place.
This commit is contained in:
David Shaw 2012-12-18 00:08:51 -05:00
parent 6b1f71055e
commit 732f3d1d47

View File

@ -629,13 +629,20 @@ show_help (FILE *fp)
int int
main(int argc,char *argv[]) main(int argc,char *argv[])
{ {
int arg,ret=KEYSERVER_INTERNAL_ERROR,try_srv=1; int arg,ret=KEYSERVER_INTERNAL_ERROR;
char line[MAX_LINE]; char line[MAX_LINE];
int failed=0; int failed=0;
struct keylist *keylist=NULL,*keyptr=NULL; struct keylist *keylist=NULL,*keyptr=NULL;
char *proxy=NULL; char *proxy=NULL;
struct curl_slist *headers=NULL,*resolve=NULL; struct curl_slist *headers=NULL,*resolve=NULL;
/* Only default this to on if we have SRV support */
#ifdef USE_DNS_SRV
int try_srv = 1;
#else
int try_srv = 0;
#endif
console=stderr; console=stderr;
/* Kludge to implement standard GNU options. */ /* Kludge to implement standard GNU options. */