diff options
author | emax <emax@FreeBSD.org> | 2005-07-29 14:44:17 +0000 |
---|---|---|
committer | emax <emax@FreeBSD.org> | 2005-07-29 14:44:17 +0000 |
commit | bdf4ec64433a5c43975a17888984dd85bccee3ac (patch) | |
tree | 1d7b173cda6a8a2bad4b7fe7770d58e4a7e09ca2 | |
parent | 3c148b71eb7204eb8ec0f9a9dc000571f0e9730f (diff) | |
download | FreeBSD-src-bdf4ec64433a5c43975a17888984dd85bccee3ac.zip FreeBSD-src-bdf4ec64433a5c43975a17888984dd85bccee3ac.tar.gz |
Fix typo and check correct (rsp) pointer against the NULL value.
Submitted by: Oliver < urnenfel at tiscali dot es >
MFC after: 1 day
-rw-r--r-- | sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c b/sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c index 6b827c5..b2df2a7 100644 --- a/sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c +++ b/sys/netgraph/bluetooth/l2cap/ng_l2cap_llpi.c @@ -250,7 +250,7 @@ ng_l2cap_lp_con_ind(ng_l2cap_p l2cap, struct ng_mesg *msg) /* Create and send LP_ConnectRsp event */ NG_MKMESSAGE(rsp, NGM_HCI_COOKIE, NGM_HCI_LP_CON_RSP, sizeof(*rp), M_NOWAIT); - if (msg == NULL) { + if (rsp == NULL) { ng_l2cap_free_con(con); error = ENOMEM; goto out; |