Remove accidentally committed abort()

This commit is contained in:
Matt Johnston 2020-11-13 23:16:50 +08:00
parent 24cfda9e3c
commit 15ea6d1106

View File

@ -188,7 +188,6 @@ unsigned char* buf_getptr(const buffer* buf, unsigned int len) {
unsigned char* buf_getwriteptr(const buffer* buf, unsigned int len) {
if (len > BUF_MAX_INCR || buf->pos + len > buf->size) {
abort();
dropbear_exit("Bad buf_getwriteptr");
}
return &buf->data[buf->pos];