diff options
author | Günther Deschner <gd@samba.org> | 2009-11-12 15:40:42 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-11-12 15:50:37 +0100 |
commit | 0f8bf47d949fbdf47bdb388ad584652202ce185b (patch) | |
tree | 4b5ad4c9f1075f9fbc92d97fea7f95a4162e813b /source3/libsmb | |
parent | 0d6c3058b22b387b264393f83fc0c069243c27b7 (diff) | |
download | samba-0f8bf47d949fbdf47bdb388ad584652202ce185b.tar.gz samba-0f8bf47d949fbdf47bdb388ad584652202ce185b.tar.bz2 samba-0f8bf47d949fbdf47bdb388ad584652202ce185b.zip |
s3-kerberos: avoid using ERROR_TABLE_BASE_krb5 without checking.
Guenther
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clikrb5.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/libsmb/clikrb5.c b/source3/libsmb/clikrb5.c index e86c6c4531..3da64d60c2 100644 --- a/source3/libsmb/clikrb5.c +++ b/source3/libsmb/clikrb5.c @@ -1559,7 +1559,11 @@ done: } if (krberror->e_data.data == NULL) { +#if defined(ERROR_TABLE_BASE_krb5) ret = ERROR_TABLE_BASE_krb5 + (krb5_error_code) krberror->error; +#else + ret = (krb5_error_code)krberror->error; +#endif got_error_code = True; } smb_krb5_free_error(context, krberror); |