mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 09:32:34 +00:00
FS-3753 --resolve
This commit is contained in:
parent
d8a7db2d8a
commit
26a49a6e70
@ -362,7 +362,7 @@ SWITCH_DECLARE(int) switch_parse_cidr(const char *string, ip_t *ip, ip_t *mask,
|
|||||||
ip_t *maskv = mask;
|
ip_t *maskv = mask;
|
||||||
ip_t *ipv = ip;
|
ip_t *ipv = ip;
|
||||||
|
|
||||||
memcpy(host, string, sizeof(host));
|
switch_copy_string(host, string, sizeof(host)-1);
|
||||||
bit_str = strchr(host, '/');
|
bit_str = strchr(host, '/');
|
||||||
|
|
||||||
if (!bit_str) {
|
if (!bit_str) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user