s3-kerberos: avoid using ERROR_TABLE_BASE_krb5 without checking.
authorGünther Deschner <gd@samba.org>
Thu, 12 Nov 2009 14:40:42 +0000 (15:40 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 12 Nov 2009 14:50:37 +0000 (15:50 +0100)
Guenther

source3/libsmb/clikrb5.c

index e86c6c4531a08f7d6f4fd83cf9f11438ebcc4f0b..3da64d60c2f3704cbe029298da82363ea5f2fc7b 100644 (file)
@@ -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);