libpurple/protocols/zephyr/ZRecvNot.c

changeset 40643
1c9bdf8d3e85
parent 40628
4266008a7791
--- a/libpurple/protocols/zephyr/ZRecvNot.c	Fri Dec 11 01:48:49 2020 -0600
+++ b/libpurple/protocols/zephyr/ZRecvNot.c	Fri Dec 11 04:12:45 2020 -0600
@@ -11,7 +11,7 @@
 #include "internal.h"
 
 Code_t
-ZReceiveNotice(ZNotice_t *notice, struct sockaddr_in *from)
+ZReceiveNotice(ZNotice_t *notice, GSocketAddress **from)
 {
     char *buffer;
     Z_InputQ *nextq;
@@ -31,8 +31,9 @@
     if (!(buffer = (char *) malloc((unsigned) len)))
 	return (ENOMEM);
 
-    if (from)
-	*from = nextq->from;
+    if (from) {
+	*from = g_object_ref(nextq->from);
+    }
 
     (void) memcpy(buffer, nextq->packet, len);
 

mercurial