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