[sofia-sip] scan-build: Fix dereference of null pointer in outgoing_query_results().
This commit is contained in:
parent
74f1cb76fd
commit
6318798f54
|
@ -1 +1 @@
|
|||
Wed Feb 19 21:45:20 UTC 2020
|
||||
Wed Feb 19 22:50:10 UTC 2020
|
||||
|
|
|
@ -9963,10 +9963,16 @@ static int outgoing_query_a(nta_outgoing_t *orq, struct sipdns_query *);
|
|||
static void outgoing_answer_a(sres_context_t *orq, sres_query_t *q,
|
||||
sres_record_t *answers[]);
|
||||
|
||||
#ifdef __clang_analyzer__
|
||||
#define FUNC_ATTR_NONNULL(...) __attribute__((nonnull(__VA_ARGS__)))
|
||||
#else
|
||||
#define FUNC_ATTR_NONNULL(...)
|
||||
#endif
|
||||
|
||||
static void outgoing_query_results(nta_outgoing_t *orq,
|
||||
struct sipdns_query *sq,
|
||||
char *results[],
|
||||
size_t rlen);
|
||||
size_t rlen) FUNC_ATTR_NONNULL(3);
|
||||
|
||||
|
||||
#define SIPDNS_503_ERROR 503, "DNS Error"
|
||||
|
@ -10793,7 +10799,8 @@ void outgoing_answer_aaaa(sres_context_t *orq, sres_query_t *q,
|
|||
|
||||
sres_free_answers(orq->orq_agent->sa_resolver, answers);
|
||||
|
||||
outgoing_query_results(orq, sq, results, found);
|
||||
if (results)
|
||||
outgoing_query_results(orq, sq, results, found);
|
||||
}
|
||||
#endif /* SU_HAVE_IN6 */
|
||||
|
||||
|
@ -10875,7 +10882,8 @@ void outgoing_answer_a(sres_context_t *orq, sres_query_t *q,
|
|||
|
||||
sres_free_answers(orq->orq_agent->sa_resolver, answers);
|
||||
|
||||
outgoing_query_results(orq, sq, results, found);
|
||||
if (results)
|
||||
outgoing_query_results(orq, sq, results, found);
|
||||
}
|
||||
|
||||
/** Store A/AAAA query results */
|
||||
|
|
Loading…
Reference in New Issue