rem: if (!session->node->connected) continue;  if (!(packet = opn_packet_new()))
add: if (!session->node->connected || !(packet = opn_packet_new()))
context: BOOL opennap_search(Protocol *p, IFEvent *event, char *query,                    char *exclude, char *realm, Dataset *meta){	OpnSearch *search;	OpnPacket *packet;	OpnSession *session;	List *l;	if (!opn_is_connected || !(search = opn_search_new()))		return FALSE;	OPENNAP->searches = list_prepend(OPENNAP->searches, search);	search->query = opn_string_split(query, " ");	search->exclude = opn_string_split(exclude, " ");	search->event = event;		for (l = OPENNAP->sessions; l; l = l->next) {		session = (OpnSession *) l->data;				if (!session->node->connected)			continue;		if (!(packet = opn_packet_new()))			continue;		opn_packet_set_cmd(packet, OPN_CMD_SEARCH);				opn_packet_put_str(packet, "MAX_RESULTS", FALSE);		opn_packet_put_uint32(packet, OPN_MAX_SEARCH_RESULTS);		opn_packet_put_str(packet, "FILENAME CONTAINS", FALSE);		opn_packet_put_str(packet, query, TRUE);		opn_packet_send(packet, session->con);		opn_packet_free(packet);		opn_search_ref(search);	}#ifdef OPENNAP_DEBUG	OPN->DBGFN(OPN, "sent out %i search packets\n", search->ref - 1);#endif	return (opn_search_unref(search) > 0);}