From 9fe69e7596107bfb45cbcf740e228bee4adc4d67 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 21 Feb 2011 03:07:37 +0000 Subject: [PATCH] fix another issue with adding magnet links with a valid torrent_info object --- src/session_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index fd4c3ffda..21f0269d0 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -3888,7 +3888,7 @@ namespace aux { { TORRENT_ASSERT(!params.save_path.empty()); - if (params.ti && params.ti->num_files() == 0) + if (params.ti && params.ti->is_valid() && params.ti->num_files() == 0) { ec = errors::no_files_in_torrent; return torrent_handle();