summaryrefslogtreecommitdiffstats
path: root/src/socket_wrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket_wrapper.c')
-rw-r--r--src/socket_wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c
index c218e89..c99eb66 100644
--- a/src/socket_wrapper.c
+++ b/src/socket_wrapper.c
@@ -1513,7 +1513,7 @@ static void swrap_dump_packet(struct socket_info *si,
fd = swrap_get_pcap_fd(file_name);
if (fd != -1) {
- if (write(fd, packet, packet_len) != packet_len) {
+ if (write(fd, packet, packet_len) != (ssize_t)packet_len) {
free(packet);
return;
}