Had wrong length (not the base64-sized one) on secbuf realloc.