• Arthur O'Dwyer's avatar
    Verify the value of the "void *s" passed to the monitor function. · c29aef4d
    Arthur O'Dwyer authored
    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.
    c29aef4d
test_monitor.cpp 3.9 KB