diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2012-11-29 09:25:39 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2012-11-29 09:25:39 +0100 |
commit | 3b47029de9cb0d50627a3488ff6880bc1ba924d3 (patch) | |
tree | af8cebf8ac3ed32df2ac243805df8b8be1d364f6 | |
parent | sending and receiving packets implemented and tested in unittest (diff) | |
download | glouglou-3b47029de9cb0d50627a3488ff6880bc1ba924d3.tar.xz glouglou-3b47029de9cb0d50627a3488ff6880bc1ba924d3.zip |
also test user id
-rw-r--r-- | libglouglou/tests/connect.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libglouglou/tests/connect.c b/libglouglou/tests/connect.c index b8f4d1f..b27c060 100644 --- a/libglouglou/tests/connect.c +++ b/libglouglou/tests/connect.c @@ -8,7 +8,8 @@ int cli_connect_ok = 0; int srv_handle_conn(struct gg_server *srv, struct gg_user *usr, struct sockaddr_in *addr) { - srv_connect_ok = 1; + if (usr->id == 0) + srv_connect_ok = 1; return 0; } |