+2003-01-07 Sam Hartman <hartmans@mit.edu>
+
+ * mk_req_ext.c (krb5_mk_req_extended): Fix logic error in checksum function handling
+
+
2003-01-06 Sam Hartman <hartmans@mit.edu>
* mk_req_ext.c (krb5_mk_req_extended): Inf no in_data is provided
}
if (!in_data &&(*auth_context)->checksum_func) {
-
- if (in_data) {
- retval = (*auth_context)->checksum_func( context,
- *auth_context,
- (*auth_context)->checksum_func_data,
- &in_data);
- if (retval)
- goto cleanup_cksum;
+ retval = (*auth_context)->checksum_func( context,
+ *auth_context,
+ (*auth_context)->checksum_func_data,
+ &in_data);
+ if (retval)
+ goto cleanup_cksum;
}
- if ((*auth_context)->req_cksumtype == 0x8003) {
+ if (in_data) {
+
+ if ((*auth_context)->req_cksumtype == 0x8003) {
/* XXX Special hack for GSSAPI */
checksum.checksum_type = 0x8003;
checksum.length = in_data->length;