Naturally I didn't quite manage to catch _everything_ Coverity
reported to me in my first pass through the results.
This commit is contained in:
Simon Tatham 2017-02-15 05:31:51 +00:00
Родитель 991d30412d
Коммит efdbe568e2
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -1313,11 +1313,15 @@ int pageant_add_keyfile(Filename *filename, const char *passphrase,
if (keylist) {
if (keylistlen < 4) {
*retstr = dupstr("Received broken key list from agent");
sfree(keylist);
sfree(blob);
return PAGEANT_ACTION_FAILURE;
}
nkeys = toint(GET_32BIT(keylist));
if (nkeys < 0) {
*retstr = dupstr("Received broken key list from agent");
sfree(keylist);
sfree(blob);
return PAGEANT_ACTION_FAILURE;
}
p = keylist + 4;