Merge branch '725-lease-file-ipv6'
This commit is contained in:
commit
69638d0100
|
@ -159,6 +159,12 @@ lease_file6_add(const char * rem_client,
|
||||||
if (timestamp != 0) {
|
if (timestamp != 0) {
|
||||||
timestamp -= upnp_time();
|
timestamp -= upnp_time();
|
||||||
}
|
}
|
||||||
|
if (rem_client == NULL) {
|
||||||
|
rem_client = "";
|
||||||
|
}
|
||||||
|
if (desc == NULL) {
|
||||||
|
desc = "";
|
||||||
|
}
|
||||||
|
|
||||||
fprintf(fd, "%s;%s;%hu;%s;%hu;%u;%u;%s\n",
|
fprintf(fd, "%s;%s;%hu;%s;%hu;%u;%u;%s\n",
|
||||||
proto_itoa(proto), int_client, int_port, rem_client, rem_port,
|
proto_itoa(proto), int_client, int_port, rem_client, rem_port,
|
||||||
|
|
Loading…
Reference in New Issue