summaryrefslogtreecommitdiff
path: root/community/g15daemon/g15daemon-1.9.5.3-recv-oob-answer.patch
blob: adb4dccc4448dd2a95e961c290ca84e738e9412c (plain)
1
2
3
4
5
6
7
8
9
10
11
--- g15daemon-1.9.5.3.orig/libg15daemon_client/g15daemon_net.c
+++ g15daemon-1.9.5.3/libg15daemon_client/g15daemon_net.c
@@ -217,7 +217,7 @@
     if(poll(pfd,1,100)>0){
        if(pfd[0].revents & POLLPRI && !(pfd[0].revents & POLLERR || pfd[0].revents & POLLHUP || pfd[0].revents & POLLNVAL)) { 
              memset(packet,0,sizeof(packet));
-             msgret = recv(sock, packet, 10 , MSG_OOB);
+             msgret = recv(sock, packet, sizeof(packet) , MSG_OOB);
              if (msgret < 1) {
                   return -1;
               }