diff options
author | Marios Makassikis <[email protected]> | 2021-05-06 11:41:54 +0900 |
---|---|---|
committer | Steve French <[email protected]> | 2021-05-10 19:15:48 -0500 |
commit | 1fca8038e9f10bc14eb3484d212b3f03b49ac3f5 (patch) | |
tree | 00569f801fcc95ee39abc39b36ce6c6a90cd78ae /lib/debugobjects.c | |
parent | e7735c854880084a6d97e60465f19daa42842eff (diff) |
cifsd: Fix potential null-ptr-deref in destroy_previous_session()
The user field in the session structure is allocated when the client is
authenticated. If the client explicitly logs off, the user field is freed,
but the session is kept around in case the user reconnects. If the TCP
connection hasn't been closed and the client sends a session setup with
a PreviousSessionId set, destroy_previous_session() will be called to
check if the session needs to be cleaned up.
Signed-off-by: Marios Makassikis <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions