/* handshake verification failed in callback, do not recv anything */
if(ctx->tls_vrfy_result) {
result = ctx->tls_vrfy_result;
- goto out;
+ goto denied;
}
pktx_init(&pktx, cf, data);
out:
result = Curl_1st_err(result, cf_progress_egress(cf, data, &pktx));
result = Curl_1st_err(result, check_and_set_expiry(cf, data, &pktx));
-
+denied:
CURL_TRC_CF(data, cf, "[%" FMT_PRId64 "] cf_recv(blen=%zu) -> %d, %zu",
stream ? stream->id : -1, blen, result, *pnread);
CF_DATA_RESTORE(cf, save);
*pnwritten = 0;
/* handshake verification failed in callback, do not send anything */
- if(ctx->tls_vrfy_result)
- return ctx->tls_vrfy_result;
+ if(ctx->tls_vrfy_result) {
+ result = ctx->tls_vrfy_result;
+ goto denied;
+ }
(void)eos; /* use for stream EOF and block handling */
result = cf_progress_ingress(cf, data, &pktx);
out:
result = Curl_1st_err(result, check_and_set_expiry(cf, data, &pktx));
-
+denied:
CURL_TRC_CF(data, cf, "[%" FMT_PRId64 "] cf_send(len=%zu) -> %d, %zu",
stream ? stream->id : -1, len, result, *pnwritten);
CF_DATA_RESTORE(cf, save);