Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
7ab583ed
Commit
7ab583ed
authored
Aug 12, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) fix some unitialized vars in ipsec.inc
parent
22e9572a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
ipsec.inc
src/etc/inc/ipsec.inc
+8
-2
No files found.
src/etc/inc/ipsec.inc
View file @
7ab583ed
...
...
@@ -259,6 +259,7 @@ function ipsec_smp_dump_status() {
@
fwrite
(
$fd
,
$query
);
$response
=
""
;
$sread
=
""
;
while
(
!
strstr
(
$sread
,
"</message>"
))
{
$sread
=
fgets
(
$fd
);
$response
.=
$sread
;
...
...
@@ -434,16 +435,21 @@ function ipsec_get_number_of_phase2($ikeid) {
function
ipsec_find_id
(
&
$ph1ent
,
$side
=
"local"
,
$rgmap
=
array
())
{
$id_data
=
null
;
if
(
$side
==
"local"
)
{
$id_type
=
$ph1ent
[
'myid_type'
];
$id_data
=
$ph1ent
[
'myid_data'
];
if
(
isset
(
$ph1ent
[
'myid_data'
]))
{
$id_data
=
$ph1ent
[
'myid_data'
];
}
$addr
=
ipsec_get_phase1_src
(
$ph1ent
);
if
(
!
$addr
)
return
array
();
}
elseif
(
$side
==
"peer"
)
{
$id_type
=
$ph1ent
[
'peerid_type'
];
$id_data
=
$ph1ent
[
'peerid_data'
];
if
(
isset
(
$ph1ent
[
'peerid_data'
]))
{
$id_data
=
$ph1ent
[
'peerid_data'
];
}
if
(
isset
(
$ph1ent
[
'mobile'
]))
$addr
=
"%any"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment