Use correct spelling of NULL.
authortb <tb@openbsd.org>
Thu, 20 Jan 2022 20:35:46 +0000 (20:35 +0000)
committertb <tb@openbsd.org>
Thu, 20 Jan 2022 20:35:46 +0000 (20:35 +0000)
lib/libssl/ssl_sigalgs.c

index 95c624a..2960b12 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_sigalgs.c,v 1.38 2021/11/26 16:41:42 tb Exp $ */
+/* $OpenBSD: ssl_sigalgs.c,v 1.39 2022/01/20 20:35:46 tb Exp $ */
 /*
  * Copyright (c) 2018-2020 Bob Beck <beck@openbsd.org>
  * Copyright (c) 2021 Joel Sing <jsing@openbsd.org>
@@ -322,7 +322,7 @@ ssl_sigalg_select(SSL *s, EVP_PKEY *pkey)
                uint16_t sigalg_value;
 
                if (!CBS_get_u16(&cbs, &sigalg_value))
-                       return 0;
+                       return NULL;
 
                if ((sigalg = ssl_sigalg_from_value(s, sigalg_value)) == NULL)
                        continue;