tests: net: tcp: Fix NULL pointer dereference
Incorrectly use variable even if it is null. Coverity-CID: 157593 Change-Id: I883421a16870e5fe3c1d81e461f55f912ea168c0 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
9d74fd71b5
commit
f8c3467bde
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ static enum net_verdict test_ok(struct net_conn *conn,
|
|||
if (!ud) {
|
||||
fail = true;
|
||||
|
||||
DBG("Test %s failed.", ud->test);
|
||||
DBG("Test failed.\n");
|
||||
|
||||
return NET_DROP;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue