Changeset 68ce93c in mod_gnutls


Ignore:
Timestamp:
Jun 1, 2016, 12:41:29 PM (20 months ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
master, debian, upstream
Children:
4ae7810
Parents:
fad7695
Message:

Rearrange mgs_get_ocsp_response() for readability

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_ocsp.c

    rfad7695 r68ce93c  
    229229                      "Loading OCSP response failed: %s (%d)",
    230230                      gnutls_strerror(ret), ret);
    231         goto resp_cleanup;
    232     }
    233 
    234     /* succeed if response is present and valid, fail otherwise. */
    235     if (check_ocsp_response(ctxt, ocsp_response) == GNUTLS_E_SUCCESS)
    236         return GNUTLS_E_SUCCESS;
    237 
    238  resp_cleanup:
     231    }
     232    else
     233    {
     234        /* Succeed if response is present and valid. */
     235        if (check_ocsp_response(ctxt, ocsp_response) == GNUTLS_E_SUCCESS)
     236            return GNUTLS_E_SUCCESS;
     237    }
     238
     239    /* failure, clean up response data */
    239240    gnutls_free(ocsp_response->data);
    240241    ocsp_response->size = 0;
Note: See TracChangeset for help on using the changeset viewer.