rem: path_orig = opn_packet_get_str(packet, TRUE);
add: if (!(path_orig = opn_packet_get_str(packet, TRUE))) { opn_url_free(url); return; }
context: OPN_HANDLER(search_result){	OpnSession *session = (OpnSession *) udata;	OpnUrl *url;	Share share;	char *md5, *user, *bitrate, *freq, *len, *root;	char *path_orig, *path_nix;	uint32_t ip, filesize;	assert(session);	if (!(url = opn_url_new()))		return;	path_orig = opn_packet_get_str(packet, TRUE);	md5 = opn_packet_get_str(packet, FALSE);	filesize = opn_packet_get_uint32(packet);	bitrate = opn_packet_get_str(packet, FALSE);	freq = opn_packet_get_str(packet, FALSE);	len = opn_packet_get_str(packet, FALSE);	user = opn_packet_get_str(packet, FALSE);	ip = opn_packet_get_ip(packet);	if (!user)		return;	path_nix = my_file_unix_path(path_orig);	root = file_dirname(path_nix);	share_init(&share, path_nix);	share_set_root(&share, root, strlen(root));	share.size = filesize;	share_set_meta(&share, "Bitrate", bitrate);	share_set_meta(&share, "Frequency", freq);	share_set_meta(&share, "Length", len);	opn_url_set_file(url, path_orig, filesize);	opn_url_set_client(url, user, ip, 0);	opn_url_set_server(url, session->node->ip, session->node->port);	opn_search_reply_add(path_nix, url, &share);		share_finish(&share);	opn_url_free(url);	free(path_orig);	free(path_nix);	free(md5);	free(bitrate);	free(freq);	free(len);	free(user);}