diff options
author | Lee Duncan <lduncan@suse.com> | 2017-04-22 10:43:40 -0700 |
---|---|---|
committer | Lee Duncan <lduncan@suse.com> | 2017-04-22 10:43:40 -0700 |
commit | c8e6198dca7118a9256f03390a775779f44b312d (patch) | |
tree | 33b2d7b99778728c9393941af4128143fd66b9e3 | |
parent | d9c022ee4fc843a3f9286437dfc44df44f2dc603 (diff) | |
download | open-iscsi-c8e6198dca7118a9256f03390a775779f44b312d.tar.gz |
Fix coredump when printing session info.
Fixes commit "2b099d7b7e04b Use timeout when waiting for responses
from iscsid" by using the default timeout in cases where there
is no session info structure.
Signed-off-by: Lee Duncan <leeman.duncan@gmail.com>
-rw-r--r-- | usr/session_info.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/session_info.c b/usr/session_info.c index 9dc6e25..f4dffa7 100644 --- a/usr/session_info.c +++ b/usr/session_info.c @@ -423,8 +423,7 @@ int session_info_print(int info_level, struct session_info *info, int do_show) if (err || !num_found) break; - session_info_print_tree(&list, "", flags, do_show, - info->iscsid_req_tmo); + session_info_print_tree(&list, "", flags, do_show, -1); session_info_free_list(&list); break; default: |