static rpmRC
verifySizeSignature(rpmtd sigtd, size_t nbytes, char ** msg)
{
- rpmRC res;
+ rpmRC res = RPMRC_FAIL; /* assume failure */
size_t size = 0x7fffffff;
const char * title = _("Header+Payload size:");
*msg = NULL;
if (sigtd->data == NULL || nbytes == 0) {
- res = RPMRC_NOKEY;
rasprintf(msg, "%s %s\n", title, rpmSigString(res));
goto exit;
}
memcpy(&size, sigtd->data, sizeof(size));
if (size != nbytes) {
- res = RPMRC_FAIL;
rasprintf(msg, "%s %s Expected(%zd) != (%zd)\n", title,
rpmSigString(res), size, nbytes);
} else {