mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-23 21:59:57 +01:00
Make sure srvcount is initialized.
* keyserver/gpgkeys_hkp.c (srv_replace): Initialize srvcount.
This commit is contained in:
parent
498882296f
commit
8c32d4de57
@ -547,6 +547,8 @@ srv_replace(const char *srvtag,
|
||||
strcat(srvname,opt->host);
|
||||
srvcount=getsrv(srvname,&srvlist);
|
||||
}
|
||||
else
|
||||
srvcount = 0;
|
||||
|
||||
for(srvindex=0 ; srvindex<srvcount && portstr ; srvindex++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user