Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 2020 17:05:58 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r356497 - stable/12/lib/libc/resolv
Message-ID:  <202001081705.008H5wco062302@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Wed Jan  8 17:05:57 2020
New Revision: 356497
URL: https://svnweb.freebsd.org/changeset/base/356497

Log:
  MFC r348671:
  
    Rather than using the legacy IP struct fields in the union for the
    port number, properly access them by their IPv6 names.
    This will make it easier to slice up and compile out address families
    in the future.
  
    No functional change intended.

Modified:
  stable/12/lib/libc/resolv/res_findzonecut.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/lib/libc/resolv/res_findzonecut.c
==============================================================================
--- stable/12/lib/libc/resolv/res_findzonecut.c	Wed Jan  8 17:04:40 2020	(r356496)
+++ stable/12/lib/libc/resolv/res_findzonecut.c	Wed Jan  8 17:05:57 2020	(r356497)
@@ -629,7 +629,7 @@ save_a(res_state statp, ns_msg *msg, ns_sect sect,
 			arr->addr.sin6.sin6_len = sizeof(arr->addr.sin6);
 #endif
 			memcpy(&arr->addr.sin6.sin6_addr, ns_rr_rdata(rr), 16);
-			arr->addr.sin.sin_port = htons(NAMESERVER_PORT);
+			arr->addr.sin6.sin6_port = htons(NAMESERVER_PORT);
 			nsrr->flags |= RR_NS_HAVE_V6;
 			break;
 		default:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001081705.008H5wco062302>