Skip to content
Permalink
Browse files

Fail tls_info() if SSL environment is 0-length.

  • Loading branch information...
schmonz committed Dec 12, 2018
1 parent 9930f8e commit 4f2c5d39bac1fbe2b51b6ffedb14ba55234f4d82
Showing with 2 additions and 2 deletions.
  1. +2 −2 acceptutils_ucspitls.c
@@ -78,8 +78,8 @@ int tls_info(void (*die_nomem)(const char *caller,const char *alloc_fn)) {
if (ssl_env.len >= 2 && ssl_env.s[ssl_env.len-2] == 0 && ssl_env.s[ssl_env.len-1] == 0)
break;
}
if (j < 0)
die_nomem(__func__,"read");
if (j < 0) die_nomem(__func__,"read");
if (ssl_env.len == 0) return 0;

x = ssl_env.s;

0 comments on commit 4f2c5d3

Please sign in to comment.
You can’t perform that action at this time.