Fix infinite loop in case of importing invalid certificate.

Caused by commit eb7b41a68f
This commit is contained in:
Lubos Kardos 2015-07-15 13:05:02 +02:00
parent a450ffc4ab
commit 33a8b61a01
1 changed files with 1 additions and 2 deletions

View File

@ -49,7 +49,7 @@ static int doImport(rpmts ts, const char *fn, char *buf, ssize_t blen)
rpmlog(RPMLOG_ERR, _("%s: key %d import failed.\n"), fn,
keyno);
res++;
continue;
break;
}
/* Import pubkey certificate. */
@ -57,7 +57,6 @@ static int doImport(rpmts ts, const char *fn, char *buf, ssize_t blen)
rpmlog(RPMLOG_ERR, _("%s: key %d import failed.\n"), fn,
keyno);
res++;
continue;
}
pkti += certlen;
pktlen -= certlen;