/[smecontribs]/rpms/smeserver-openvpn-s2s/contribs7/smeserver-openvpn-s2s-0.1-fix_validation_on_update.patch
ViewVC logotype

Annotation of /rpms/smeserver-openvpn-s2s/contribs7/smeserver-openvpn-s2s-0.1-fix_validation_on_update.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Nov 2 16:43:51 2010 UTC (14 years ago) by slords
Branch: MAIN
CVS Tags: smeserver-openvpn-s2s-0_1-15_el4_sme, smeserver-openvpn-s2s-0_1-13_el4_sme, smeserver-openvpn-s2s-0_1-19_el4_sme, smeserver-openvpn-s2s-0_1-14_el4_sme, smeserver-openvpn-s2s-0_1-12_el4_sme, smeserver-openvpn-s2s-0_1-18_el4_sme, smeserver-openvpn-s2s-0_1-16_el4_sme, smeserver-openvpn-s2s-0_1-20_el4_sme, smeserver-openvpn-s2s-0_1-21_el4_sme, smeserver-openvpn-s2s-0_1-11_el4_sme, HEAD
Initial import

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' smeserver-openvpn-s2s-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/openvpns2s.pm mezzanine_patched_smeserver-openvpn-s2s-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/openvpns2s.pm
2     --- smeserver-openvpn-s2s-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/openvpns2s.pm 2010-10-16 17:56:47.000000000 +0200
3     +++ mezzanine_patched_smeserver-openvpn-s2s-0.1/root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/openvpns2s.pm 2010-10-16 23:35:27.000000000 +0200
4     @@ -376,6 +376,7 @@
5     sub is_valid_vpn_ip{
6     my ($fm,$ip) = @_;
7     my $ret = 'OK';
8     + my $conf = $fm->{cgi}->param('conf_name') || '';
9    
10     # Check it's a valid IP number
11     return $fm->localise('NOT_A_VALID_IP_NUMBER') unless
12     @@ -384,6 +385,7 @@
13     # Check it's not already used by another daemon
14     foreach my $vpn ($ovpn_db->get_all_by_prop(type=>'client'),
15     $ovpn_db->get_all_by_prop(type=>'server')){
16     + next if ($vpn->key eq $conf);
17     $ret = $fm->localise('IP_ALREADY_IN_USED')
18     if ((($vpn->prop('LocalIP') || '') eq $ip) ||
19     (($vpn->prop('RemoteIP') || '') eq $ip));

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed