Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/ypbind Apply patch proposted to tech-userlevel on S...



details:   https://anonhg.NetBSD.org/src/rev/d21c5ceedc0d
branches:  trunk
changeset: 555441:d21c5ceedc0d
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Mon Nov 17 21:29:21 2003 +0000

description:
Apply patch proposted to tech-userlevel on Sun, 12 Oct 2003:
Remove dom_server_port from struct _dom_binding. It's never initialised
and used in only one place, where dom_server_addr.sin_port was probably
intended.

diffstat:

 usr.sbin/ypbind/ypbind.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r c09179a76443 -r d21c5ceedc0d usr.sbin/ypbind/ypbind.c
--- a/usr.sbin/ypbind/ypbind.c  Mon Nov 17 20:41:54 2003 +0000
+++ b/usr.sbin/ypbind/ypbind.c  Mon Nov 17 21:29:21 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ypbind.c,v 1.48 2003/09/05 14:59:37 bouyer Exp $       */
+/*     $NetBSD: ypbind.c,v 1.49 2003/11/17 21:29:21 bouyer Exp $       */
 
 /*
  * Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef LINT
-__RCSID("$NetBSD: ypbind.c,v 1.48 2003/09/05 14:59:37 bouyer Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.49 2003/11/17 21:29:21 bouyer Exp $");
 #endif
 
 #include <sys/param.h>
@@ -86,7 +86,6 @@
        struct _dom_binding *dom_pnext;
        char dom_domain[YPMAXDOMAIN + 1];
        struct sockaddr_in dom_server_addr;
-       unsigned short int dom_server_port;
        int dom_socket;
        CLIENT *dom_client;
        long dom_vers;
@@ -316,7 +315,7 @@
        res.ypbind_respbody.ypbind_bindinfo.ypbind_binding_addr.s_addr =
                ypdb->dom_server_addr.sin_addr.s_addr;
        res.ypbind_respbody.ypbind_bindinfo.ypbind_binding_port =
-               ypdb->dom_server_port;
+               ypdb->dom_server_addr.sin_port;
 #ifdef DEBUG
        if (debug)
                printf("domain %s at %s/%d\n", ypdb->dom_domain,



Home | Main Index | Thread Index | Old Index