diff options
author | Ken Raeburn <raeburn@mit.edu> | 2008-07-22 19:34:24 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2008-07-22 19:34:24 +0000 |
commit | 4480e0df2a3d2fe2b63770e61d9cfd9fbe7d36fb (patch) | |
tree | 67146989d784ae02cfee1b3595b2a5c8a7366b62 /src/lib/krb5/keytab | |
parent | ae629b14a7d2f1564d09f3ef49998ec7e35d2a27 (diff) | |
download | krb5-4480e0df2a3d2fe2b63770e61d9cfd9fbe7d36fb.tar.gz krb5-4480e0df2a3d2fe2b63770e61d9cfd9fbe7d36fb.tar.xz krb5-4480e0df2a3d2fe2b63770e61d9cfd9fbe7d36fb.zip |
Catch a few more cases of unchecked k5_mutex_lock calls
ticket: 5962
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20567 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/keytab')
-rw-r--r-- | src/lib/krb5/keytab/kt_file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/krb5/keytab/kt_file.c b/src/lib/krb5/keytab/kt_file.c index 1baa80096c..8137cf9917 100644 --- a/src/lib/krb5/keytab/kt_file.c +++ b/src/lib/krb5/keytab/kt_file.c @@ -537,7 +537,9 @@ krb5_ktfile_end_get(krb5_context context, krb5_keytab id, krb5_kt_cursor *cursor krb5_error_code kerror; krb5_xfree(*cursor); - KTLOCK(id); + kerror = KTLOCK(id); + if (kerror) + return kerror; KTITERS(id)--; if (KTFILEP(id) != NULL && KTITERS(id) == 0) kerror = krb5_ktfileint_close(context, id); |