mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: sctp: sctp_ssnmap: remove 'malloced' element from struct
sctp_ssnmap_init() can only be called from sctp_ssnmap_new() where malloced is always set to 1. Thus, when we call sctp_ssnmap_free() the test for map->malloced evaluates always to true. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
92cf1f23cc
commit
542c2d8320
2 changed files with 11 additions and 11 deletions
|
@ -399,7 +399,6 @@ struct sctp_stream {
|
|||
struct sctp_ssnmap {
|
||||
struct sctp_stream in;
|
||||
struct sctp_stream out;
|
||||
int malloced;
|
||||
};
|
||||
|
||||
struct sctp_ssnmap *sctp_ssnmap_new(__u16 in, __u16 out,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue