Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
12332a86
Commit
12332a86
authored
Apr 07, 2003
by
James Morris
Committed by
David S. Miller
Apr 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPSEC]: AH/ESP forget to free private structs.
parent
58c93291
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
0 deletions
+4
-0
net/ipv4/ah.c
net/ipv4/ah.c
+1
-0
net/ipv4/esp.c
net/ipv4/esp.c
+1
-0
net/ipv6/ah6.c
net/ipv6/ah6.c
+1
-0
net/ipv6/esp6.c
net/ipv6/esp6.c
+1
-0
No files found.
net/ipv4/ah.c
View file @
12332a86
...
@@ -314,6 +314,7 @@ static void ah_destroy(struct xfrm_state *x)
...
@@ -314,6 +314,7 @@ static void ah_destroy(struct xfrm_state *x)
crypto_free_tfm
(
ahp
->
tfm
);
crypto_free_tfm
(
ahp
->
tfm
);
ahp
->
tfm
=
NULL
;
ahp
->
tfm
=
NULL
;
}
}
kfree
(
ahp
);
}
}
...
...
net/ipv4/esp.c
View file @
12332a86
...
@@ -452,6 +452,7 @@ void esp_destroy(struct xfrm_state *x)
...
@@ -452,6 +452,7 @@ void esp_destroy(struct xfrm_state *x)
kfree
(
esp
->
auth
.
work_icv
);
kfree
(
esp
->
auth
.
work_icv
);
esp
->
auth
.
work_icv
=
NULL
;
esp
->
auth
.
work_icv
=
NULL
;
}
}
kfree
(
esp
);
}
}
int
esp_init_state
(
struct
xfrm_state
*
x
,
void
*
args
)
int
esp_init_state
(
struct
xfrm_state
*
x
,
void
*
args
)
...
...
net/ipv6/ah6.c
View file @
12332a86
...
@@ -313,6 +313,7 @@ static void ah6_destroy(struct xfrm_state *x)
...
@@ -313,6 +313,7 @@ static void ah6_destroy(struct xfrm_state *x)
crypto_free_tfm
(
ahp
->
tfm
);
crypto_free_tfm
(
ahp
->
tfm
);
ahp
->
tfm
=
NULL
;
ahp
->
tfm
=
NULL
;
}
}
kfree
(
ahp
);
}
}
static
struct
xfrm_type
ah6_type
=
static
struct
xfrm_type
ah6_type
=
...
...
net/ipv6/esp6.c
View file @
12332a86
...
@@ -406,6 +406,7 @@ void esp6_destroy(struct xfrm_state *x)
...
@@ -406,6 +406,7 @@ void esp6_destroy(struct xfrm_state *x)
kfree
(
esp
->
auth
.
work_icv
);
kfree
(
esp
->
auth
.
work_icv
);
esp
->
auth
.
work_icv
=
NULL
;
esp
->
auth
.
work_icv
=
NULL
;
}
}
kfree
(
esp
);
}
}
int
esp6_init_state
(
struct
xfrm_state
*
x
,
void
*
args
)
int
esp6_init_state
(
struct
xfrm_state
*
x
,
void
*
args
)
...
...
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