diff options
Diffstat (limited to 'tls.c')
-rw-r--r-- | tls.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -220,6 +220,10 @@ unsigned char *radtlsget(SSL *ssl, int timeout) { } len = RADLEN(buf); + if (len < 4) { + debug(DBG_ERR, "radtlsget: length too small"); + continue; + } rad = malloc(len); if (!rad) { debug(DBG_ERR, "radtlsget: malloc failed"); |