1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-13 08:20:06 +00:00

Dont take address of address

This commit is contained in:
Dirk Engling 2024-03-29 03:44:31 +01:00
parent 543ab73017
commit 5805fe5f86

View File

@ -518,7 +518,7 @@ int accesslist_bless_net( ot_net *net, ot_permissions permissions ) {
if( g_admin_nets_count >= OT_ADMINIP_MAX )
return -1;
memcpy(g_admin_nets + g_admin_nets_count, &net, sizeof(ot_net));
memcpy(g_admin_nets + g_admin_nets_count, net, sizeof(ot_net));
g_admin_nets_permissions[ g_admin_nets_count++ ] = permissions;
#ifdef _DEBUG