Fix problem when gss_accept_sec_context() fails where error message was lost
authorPaul Park <pjpark@mit.edu>
Mon, 22 May 1995 19:43:34 +0000 (19:43 +0000)
committerPaul Park <pjpark@mit.edu>
Mon, 22 May 1995 19:43:34 +0000 (19:43 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5845 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gss-sample/ChangeLog
src/appl/gss-sample/gss-server.c

index 606ace93ceab4fd3d454beda75f163253a412cb3..1c35656be4c2efe2132b67a2bffd1f6e06f437a6 100644 (file)
@@ -1,3 +1,9 @@
+
+Mon May 22 15:41:33 EDT 1995   Paul Park       (pjpark@mit.edu)
+       * gss-server.c  : (server_establish_context) Don't call gss_release_
+                         buffer right after gss_accept_sec_context because
+                         in the event that we choke, we lose the minor status
+
 Fri Apr 28 15:30:00 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * Makefile.in (gss-client): Use $(LD) instead of $(CC) so that we can
index ed273ab0125db838e3d36947637876eb8f828dd8..55f18525282aadc81126302d50300ebeadf12780 100644 (file)
@@ -361,12 +361,13 @@ int server_establish_context(s, server_creds, context, client_name)
                                      NULL,     /* ignore time_rec */
                                      NULL);    /* ignore del_cred_handle */
 
-         (void) gss_release_buffer(&min_stat, &recv_tok);
-         
          if (maj_stat!=GSS_S_COMPLETE && maj_stat!=GSS_S_CONTINUE_NEEDED) {
               display_status("accepting context", maj_stat, min_stat);
+              (void) gss_release_buffer(&min_stat, &recv_tok);
               return -1;
          }
+         (void) gss_release_buffer(&min_stat, &recv_tok);
+         
 
          if (send_tok.length != 0) {
               if (send_token(s, &send_tok) < 0) {