What steps will reproduce the problem?
1. View mongoose.c line 3999
2. See that assert(conn) is called after conn has been dereferenced twice.
3. Realize the NULL pointer dereference wasn't protected against by the
assert().
What is the expected output? What do you see instead?
The code just has a simple bug.
What version of the product are you using? On what operating system?
Latest version of mongoose.c 544f09214e83
Please provide any additional information below.
The fix is to move the assert(conn != NULL) check to right after conn is
allocated (two lines earlier).
Original issue reported on code.google.com by scott.wi...@gmail.com on 24 Dec 2011 at 4:35
Original issue reported on code.google.com by
scott.wi...@gmail.com
on 24 Dec 2011 at 4:35