X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_subnet.c;fp=src%2Fprotocol_subnet.c;h=15ec8bf4c807ce33f0a24e20920416f39f96a2b8;hp=62656c38302e8587ab10dfb4cb1f36e24ad2239e;hb=985d19caf20058db3c764f0f6fbeafa8bcc59fcc;hpb=d178b583df9fe2bf3ebb3a7377203efc5c46df32 diff --git a/src/protocol_subnet.c b/src/protocol_subnet.c index 62656c38..15ec8bf4 100644 --- a/src/protocol_subnet.c +++ b/src/protocol_subnet.c @@ -35,7 +35,7 @@ bool send_add_subnet(connection_t *c, const subnet_t *subnet) { char netstr[MAXNETSTR]; - if(!net2str(netstr, sizeof netstr, subnet)) + if(!net2str(netstr, sizeof(netstr), subnet)) return false; return send_request(c, "%d %x %s %s", ADD_SUBNET, rand(), subnet->owner->name, netstr); @@ -144,7 +144,7 @@ bool add_subnet_h(connection_t *c) { bool send_del_subnet(connection_t *c, const subnet_t *s) { char netstr[MAXNETSTR]; - if(!net2str(netstr, sizeof netstr, s)) + if(!net2str(netstr, sizeof(netstr), s)) return false; return send_request(c, "%d %x %s %s", DEL_SUBNET, rand(), s->owner->name, netstr);