lib/krb5: akf_add_entry do not leak 'fd'
5be5faa722
("Use all DES keys, not just des-cbc-md5, verify that they all are the same.")
introduced a common out but missed a code path.
Change-Id: I27c1913c8cf87600ae34c42874bfc9d49ae1d22e
This commit is contained in:
@@ -403,7 +403,7 @@ akf_add_entry(krb5_context context,
|
|||||||
ret = errno;
|
ret = errno;
|
||||||
krb5_set_error_message (context, ret,
|
krb5_set_error_message (context, ret,
|
||||||
N_("keytab keyfile failed new length", ""));
|
N_("keytab keyfile failed new length", ""));
|
||||||
return ret;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(krb5_storage_seek(sp, (len - 1) * (8 + 4), SEEK_CUR) < 0) {
|
if(krb5_storage_seek(sp, (len - 1) * (8 + 4), SEEK_CUR) < 0) {
|
||||||
|
Reference in New Issue
Block a user