rxi / sandbird

A tiny embeddable HTTP server written in C89
MIT License
174 stars 27 forks source link

Exception Thrown; read acces violation, svr is nullptr #6

Closed omertoast closed 4 years ago

omertoast commented 4 years ago

I found a proxy on github and when i run it, I'm getting this. image

rxi commented 4 years ago

This looks like an issue external to the library -- the server pointer passed to that function is expected to be none-NULL. The most likely issue is that the call to sb_new_server() is failing as the port can't be bound and thus NULL is returned, it's expected that the user checks for this error case, but if that isn't happening it may eventually get passed to the function where you're encountering an issue.