Skip to content

Commit 9eb72b0

Browse files
wen-zhengakshayknarayan
authored andcommitted
Update ccp.c
fix bug: kernel crash when conn is null
1 parent 7c308c2 commit 9eb72b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ccp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ int ccp_invoke(struct ccp_connection *conn) {
139139
int i;
140140
int ok = 0;
141141
struct ccp_priv_state *state;
142-
struct ccp_datapath *datapath = conn->datapath;
142+
struct ccp_datapath *datapath;
143143

144144
if (conn == NULL) {
145145
return -1;
146146
}
147-
147+
datapath = conn->datapath;
148148
state = get_ccp_priv_state(conn);
149149
if (!(state->sent_create)) {
150150
// try contacting the CCP again

0 commit comments

Comments
 (0)