]> git.ipfire.org Git - thirdparty/openssl.git/commit
Update IPAddressOrRange_cmp function to handle switch case
authorVikas Verma <131862931+vikasverma4795@users.noreply.github.com>
Mon, 18 Dec 2023 13:28:25 +0000 (18:58 +0530)
committerTomas Mraz <tomas@openssl.org>
Tue, 19 Dec 2023 17:24:21 +0000 (18:24 +0100)
commita8df5651153e8e81fbaa8408dd1137232168997d
treec9fea5efcb53e4b3a33623fa95b27ca239cef212
parentb46de72c260e7c4d9bfefa35b02295ba32ad2ac6
Update IPAddressOrRange_cmp function to handle switch case

As there is no default case for a->type or b->type in the switch()
statements, if the type does not fall into any defined cases
then memcmp() will be done on garbage data.

Adding default cases in both switches.

CLA: trivial

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23082)
crypto/x509/v3_addr.c