Fix logic error in previous patch that broke gss_init_sec_context
authorSam Hartman <hartmans@mit.edu>
Tue, 7 Jan 2003 19:27:50 +0000 (19:27 +0000)
committerSam Hartman <hartmans@mit.edu>
Tue, 7 Jan 2003 19:27:50 +0000 (19:27 +0000)
ticket: 1054
Status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15087 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/ChangeLog
src/lib/krb5/krb/mk_req_ext.c

index e12afdce68550a9e7f8a448fd872461527100839..997292fe40ba4fd182a84a2a214a6862af159418 100644 (file)
@@ -1,3 +1,8 @@
+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
index c2cd63b914d953dbcc6c4591160ca0a2a7af2e5f..a6510019d18726f567db1a00eb345e82d984fe3b 100644 (file)
@@ -141,17 +141,17 @@ krb5_mk_req_extended(krb5_context context, krb5_auth_context *auth_context,
     }
 
     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;