Fix some NULL/0 misspellings in SSL_CTX_new()
authortb <tb@openbsd.org>
Tue, 19 Sep 2023 01:19:45 +0000 (01:19 +0000)
committertb <tb@openbsd.org>
Tue, 19 Sep 2023 01:19:45 +0000 (01:19 +0000)
lib/libssl/ssl_lib.c

index 76fcfde..8f1add9 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_lib.c,v 1.312 2023/07/19 13:34:33 tb Exp $ */
+/* $OpenBSD: ssl_lib.c,v 1.313 2023/09/19 01:19:45 tb Exp $ */
 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
@@ -2119,11 +2119,11 @@ SSL_CTX_new(const SSL_METHOD *meth)
        if ((ret->cert = ssl_cert_new()) == NULL)
                goto err;
 
-       ret->default_passwd_callback = 0;
+       ret->default_passwd_callback = NULL;
        ret->default_passwd_callback_userdata = NULL;
-       ret->client_cert_cb = 0;
-       ret->app_gen_cookie_cb = 0;
-       ret->app_verify_cookie_cb = 0;
+       ret->client_cert_cb = NULL;
+       ret->app_gen_cookie_cb = NULL;
+       ret->app_verify_cookie_cb = NULL;
 
        ret->sessions = lh_SSL_SESSION_new();
        if (ret->sessions == NULL)