Merge pull request #1306 from lioncash/null
rosalina/gdb/server: Prevent potential null dereference case
This commit is contained in:
commit
1946941340
@ -136,9 +136,9 @@ GDBContext *GDB_SelectAvailableContext(GDBServer *server, u16 minPort, u16 maxPo
|
|||||||
{
|
{
|
||||||
ctx->flags |= GDB_FLAG_SELECTED;
|
ctx->flags |= GDB_FLAG_SELECTED;
|
||||||
ctx->localPort = port;
|
ctx->localPort = port;
|
||||||
|
ctx->parent = server;
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx->parent = server;
|
|
||||||
GDB_UnlockAllContexts(server);
|
GDB_UnlockAllContexts(server);
|
||||||
return ctx;
|
return ctx;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user