svn commit: r367244 - projects/nfs-over-tls/usr.sbin/rpc.tlsclntd
Rick Macklem
rmacklem at FreeBSD.org
Sun Nov 1 03:03:11 UTC 2020
Author: rmacklem
Date: Sun Nov 1 03:03:10 2020
New Revision: 367244
URL: https://svnweb.freebsd.org/changeset/base/367244
Log:
Initialize a variable. Surprisingly, it worked without this.
I found it while running with debugging enabled.
Modified:
projects/nfs-over-tls/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c
Modified: projects/nfs-over-tls/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c
==============================================================================
--- projects/nfs-over-tls/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c Sat Oct 31 23:48:41 2020 (r367243)
+++ projects/nfs-over-tls/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c Sun Nov 1 03:03:10 2020 (r367244)
@@ -578,13 +578,14 @@ rpctls_connect(SSL_CTX *ctx, int s, X509 **certp)
{
SSL *ssl;
X509 *cert;
- struct sockaddr *sad;
struct sockaddr_storage ad;
+ struct sockaddr *sad;
char hostnam[NI_MAXHOST];
int gethostret, ret;
char *cp, *cp2;
*certp = NULL;
+ sad = (struct sockaddr *)&ad;
ssl = SSL_new(ctx);
if (ssl == NULL) {
rpctls_verbose_out("rpctls_connect: "
More information about the svn-src-projects
mailing list