From: Alan T. DeKok Date: Tue, 22 Oct 2019 19:44:01 +0000 (-0400) Subject: try to shut up static analyzer X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c2a004d40b0a00c4fd3befcd7f1875957e7c4da;p=thirdparty%2Ffreeradius-server.git try to shut up static analyzer --- diff --git a/src/protocols/dhcpv6/decode.c b/src/protocols/dhcpv6/decode.c index 92a98496058..1f11f0a1d9e 100644 --- a/src/protocols/dhcpv6/decode.c +++ b/src/protocols/dhcpv6/decode.c @@ -117,6 +117,9 @@ static ssize_t decode_dns_labels(TALLOC_CTX *ctx, fr_cursor_t *cursor, fr_dict_t rcode = fr_dns_labels_network_verify(data, data_len); if (rcode < 0) { raw: +#ifdef __clang_analyzer__ + if (!ctx || !parent->parent) return -1; +#endif parent = fr_dict_unknown_afrom_fields(ctx, parent->parent, fr_dict_vendor_num_by_da(parent), parent->attr); if (!parent) {