mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
save_ips() wasn't working properly..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1338 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
0b76253492
commit
38fbd48712
@ -43,7 +43,7 @@ static void save_ips(IPADDR *ip4, IPADDR *ip6,
|
||||
else {
|
||||
if (*save_ip4 == NULL)
|
||||
*save_ip4 = g_new(IPADDR, 1);
|
||||
memcpy(*save_ip4, &ip4, sizeof(IPADDR));
|
||||
memcpy(*save_ip4, ip4, sizeof(IPADDR));
|
||||
}
|
||||
|
||||
if (ip6->family == 0)
|
||||
@ -51,7 +51,7 @@ static void save_ips(IPADDR *ip4, IPADDR *ip6,
|
||||
else {
|
||||
if (*save_ip6 == NULL)
|
||||
*save_ip6 = g_new(IPADDR, 1);
|
||||
memcpy(*save_ip6, &ip6, sizeof(IPADDR));
|
||||
memcpy(*save_ip6, ip6, sizeof(IPADDR));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user