Message ID | 20240903192714.6922-1-danielbondno@gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | scan: add guard to check that results->sr is set to avoid segfault issue. | expand |
diff --git a/src/scan.c b/src/scan.c index debdeb1f..e5360d1b 100644 --- a/src/scan.c +++ b/src/scan.c @@ -2056,7 +2056,7 @@ static void get_survey_done(void *user_data) sc->get_survey_cmd_id = 0; - if (!results->sr->canceled) + if (results->sr && !results->sr->canceled) get_results(results); else get_scan_done(user_data);