diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2013-06-28 09:48:35 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2013-06-28 09:48:35 +0200 |
commit | 0c79fb38902737f3f3fe12a09ec29018352c9c6e (patch) | |
tree | 0ad7bd10c4d8fab1c0a6e436952a89b00f3ca15d /tests/tcp.c | |
parent | b1378ac5f1071aa339e3965d3b119b8e5297539e (diff) | |
download | nanomsg-0c79fb38902737f3f3fe12a09ec29018352c9c6e.tar.gz |
Bug in TCP connection string parsing fixed
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'tests/tcp.c')
-rw-r--r-- | tests/tcp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tcp.c b/tests/tcp.c index 957cb4a..48d0263 100644 --- a/tests/tcp.c +++ b/tests/tcp.c @@ -93,6 +93,9 @@ int main () rc = nn_connect (sc, "tcp://eth10000;127.0.0.1:5555"); nn_assert (rc < 0); errno_assert (nn_errno () == ENODEV); + rc = nn_connect (sc, "tcp://127.0.0.1"); + nn_assert (rc < 0); + errno_assert (nn_errno () == EINVAL); rc = nn_bind (sc, "tcp://127.0.0.1:"); nn_assert (rc < 0); errno_assert (nn_errno () == EINVAL); |