git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d6c305
)
s3-kerberos: avoid using ERROR_TABLE_BASE_krb5 without checking.
author
Günther Deschner
<gd@samba.org>
Thu, 12 Nov 2009 14:40:42 +0000
(15:40 +0100)
committer
Günther Deschner
<gd@samba.org>
Thu, 12 Nov 2009 14:50:37 +0000
(15:50 +0100)
Guenther
source3/libsmb/clikrb5.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clikrb5.c
b/source3/libsmb/clikrb5.c
index e86c6c4531a08f7d6f4fd83cf9f11438ebcc4f0b..3da64d60c2f3704cbe029298da82363ea5f2fc7b 100644
(file)
--- 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);