The code is meant to check the *peer* state change return value (and not the sink's one). CID #1416128