Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2014 23:58:18 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r263782 - in stable: 8/sys/nlm 9/sys/nlm
Message-ID:  <201403262358.s2QNwITC057763@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Wed Mar 26 23:58:17 2014
New Revision: 263782
URL: http://svnweb.freebsd.org/changeset/base/263782

Log:
  MFC r262991:
  
  Correct a typo in nlm_find_host_by_addr(): the intention of the
  code is to give "<unknown>" rather than comparing the buffer
  against it.

Modified:
  stable/9/sys/nlm/nlm_prot_impl.c
Directory Properties:
  stable/9/sys/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/8/sys/nlm/nlm_prot_impl.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/nlm/   (props changed)

Modified: stable/9/sys/nlm/nlm_prot_impl.c
==============================================================================
--- stable/9/sys/nlm/nlm_prot_impl.c	Wed Mar 26 23:57:09 2014	(r263781)
+++ stable/9/sys/nlm/nlm_prot_impl.c	Wed Mar 26 23:58:17 2014	(r263782)
@@ -1072,7 +1072,7 @@ nlm_find_host_by_addr(const struct socka
 		break;
 #endif
 	default:
-		strcmp(tmp, "<unknown>");
+		strlcpy(tmp, "<unknown>", sizeof(tmp));
 	}
 
 



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