[FIX] Svace issues 57/57757/1
authorVitaliy Cherepanov <v.cherepanov@samsung.com>
Fri, 22 Jan 2016 10:57:02 +0000 (13:57 +0300)
committerVitaliy Cherepanov <v.cherepanov@samsung.com>
Fri, 22 Jan 2016 10:57:02 +0000 (13:57 +0300)
Change-Id: I07d8d84dfe5e4b4445d6a71f120e6b0f48a26cf7
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
probe_socket/libdasocket.c

index 1a5b515..5864445 100644 (file)
@@ -370,9 +370,8 @@ ssize_t PROBE_NAME(recvmsg)(int socket, struct msghdr *message, int flags) {
                                                 flags);
 
        sret = recvmsgp(socket, message, flags);
-       if (sret <= 0) {
-               memset(&message, 0, sizeof(message));
-       }
+       if (sret <= 0)
+               memset(message, 0, sizeof(*message));
 
        int sendMaxSize = SOCKET_SEND_SIZE;
        char* out = (char*) real_malloc(sendMaxSize + 5);