Skip to content

Commit

Permalink
Fix another null pointer, #665
Browse files Browse the repository at this point in the history
  • Loading branch information
kaetemi committed Apr 22, 2022
1 parent 186d751 commit ff27c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nel/src/net/module_gateway.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ namespace NLNET
/** Send a command to the security plug-in */
virtual void sendSecurityCommand(const TParsedCommandLine &command)
{
if (_SecurityPlugin != NULL)
if (_SecurityPlugin == NULL)
{
nlwarning("NLNETL5 : CStandardGateway::sendSecurityCommand : plug-in NOT created ");
return;
Expand Down

2 comments on commit ff27c9c

@mlcdev
Copy link

@mlcdev mlcdev commented on ff27c9c Apr 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, a classic. Nice catch!

@kervala
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, a classic. Nice catch!

Yep, it's very nice GCC detected them :)

Please sign in to comment.