Could check this?

Oliver urnenfel at tiscali.es
Fri Jul 29 12:58:02 GMT 2005


Hi,

In file ng_l2cap_llpi.c func ng_l2cap_lp_con_ind(...) 
concretely line:251:

	/* Create and send LP_ConnectRsp event */
	NG_MKMESSAGE(rsp, NGM_HCI_COOKIE, NGM_HCI_LP_CON_RSP,
		sizeof(*rp), M_NOWAIT);
	if (msg == NULL) {
		ng_l2cap_free_con(con);
		error = ENOMEM;
		goto out;
	}

NG_MKMESSAGE function creates a NG_MESSAGE called rsp? for being send with 
NG_SEND_MSG_HOOK afterwards, am I right?

if it is, shouldnt we be cheking the rsp pointer instead of msg ?
...the msg pointer is used much before in this func...so if it was NULL it 
should have crashed much before...

Am I missing something?

thanks,

		
______________________________________________ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es


More information about the freebsd-bluetooth mailing list