Verify the value of the "void *s" passed to the monitor function.
This formerly unused parameter actually represents the socket on which the event was received. As such, we should check that its value makes sense: it must be either "rep" or "req", and in the case of some kinds of events, it must be specifically one or the other. After this change, "s" is no longer unused.
Showing
Please
register
or
sign in
to comment