Project

General

Profile

Bug #8636 ยป pfSense.c.patch

Steven Brown, 07/11/2018 12:59 AM

View differences:

pfSense.c.edited 2018-07-11 14:17:42.038625000 +0000
758 758
	if (proto != NULL && proto_len > 0) {
759 759
		if (!strncmp(proto, "tcp", strlen("tcp")))
760 760
			psk.psk_proto = IPPROTO_TCP;
761
		else if (!strncmp(proto, "tcp", strlen("udp")))
761
		else if (!strncmp(proto, "udp", strlen("udp")))
762 762
			psk.psk_proto = IPPROTO_UDP;
763
		else if (!strncmp(proto, "tcp", strlen("icmpv6")))
763
		else if (!strncmp(proto, "icmpv6", strlen("icmpv6")))
764 764
			psk.psk_proto = IPPROTO_ICMPV6;
765
		else if (!strncmp(proto, "tcp", strlen("icmp")))
765
		else if (!strncmp(proto, "icmp", strlen("icmp")))
766 766
			psk.psk_proto = IPPROTO_ICMP;
767 767
	}
768 768

  
    (1-1/1)