Commit 682e6957 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Fixed bug reading connection time


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@219 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 83647b17
......@@ -163,7 +163,7 @@ int nmxp_sendConnectRequest(int isock, char *naqs_username, char *naqs_password,
int nmxp_readConnectionTime(int isock, int32_t *connection_time) {
int ret;
ret = nmxp_recv_ctrl(isock, connection_time, sizeof(connection_time));
ret = nmxp_recv_ctrl(isock, connection_time, sizeof(int32_t));
*connection_time = ntohl(*connection_time);
nmxp_log(0, 1, "Read connection time from socket %d.\n", *connection_time);
if(ret != NMXP_SOCKET_OK) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment