pull up r20574 from trunk
authorTom Yu <tlyu@mit.edu>
Fri, 25 Jul 2008 20:33:17 +0000 (20:33 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 25 Jul 2008 20:33:17 +0000 (20:33 +0000)
 r20574@cathode-dark-space:  jaltman | 2008-07-23 12:03:40 -0400
 ticket: 5442

 replace "exit" label with "done"

ticket: 5442

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@20582 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/accept_sec_context.c

index bb0e2051a33573ff5e2a0ef813c6bd4157d52844..fd8d5ba2e63e451fae3a3b22c1e8077625889096 100644 (file)
@@ -905,7 +905,7 @@ krb5_gss_accept_sec_context(minor_status, context_handle,
    if (!GSS_ERROR(major_status) && major_status != GSS_S_CONTINUE_NEEDED) {
        ctx->k5_context = context;
        context = NULL;
-       goto exit;
+       goto done;
    }
 
    /* from here on is the real "fail" code */
@@ -969,7 +969,7 @@ krb5_gss_accept_sec_context(minor_status, context_handle,
 
        code = krb5_mk_error(context, &krb_error_data, &scratch);
        if (code)
-           goto exit;
+           goto done;
 
        tmsglen = scratch.length;
        toktype = KG_TOK_CTX_ERROR;
@@ -977,7 +977,7 @@ krb5_gss_accept_sec_context(minor_status, context_handle,
        token.length = g_token_size(mech_used, tmsglen);
        token.value = (unsigned char *) xmalloc(token.length);
        if (!token.value) 
-           goto exit;
+           goto done;
 
        ptr = token.value;
        g_make_token_header(mech_used, tmsglen, &ptr, toktype);
@@ -988,7 +988,7 @@ krb5_gss_accept_sec_context(minor_status, context_handle,
        *output_token = token;
    }
 
-  exit:
+  done:
    if (!verifier_cred_handle && cred_handle) {
        krb5_gss_release_cred(&tmp_minor_status, &cred_handle);
    }