Stop ZMTP handshake when an unexpected message comes

This commit is contained in:
Martin Hurton
2013-06-22 08:11:55 +02:00
parent 92b02b98cd
commit 20a7978d67
4 changed files with 5 additions and 5 deletions

View File

@@ -98,7 +98,7 @@ int zmq::curve_server_t::process_handshake_message (msg_t *msg_)
}
break;
default:
errno = EAGAIN;
errno = EPROTO;
rc = -1;
break;
}