From fe1fd58a6ea23e336f276fa24a2533de2029a4d1 Mon Sep 17 00:00:00 2001 From: stsp Date: Mon, 5 Oct 2015 22:08:14 +0000 Subject: [PATCH] actually use lbuf in getmailname() ok millert@ gilles@ --- usr.sbin/smtpd/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/smtpd/util.c b/usr.sbin/smtpd/util.c index f40cc40148d..a7409bc6470 100644 --- a/usr.sbin/smtpd/util.c +++ b/usr.sbin/smtpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.115 2015/10/02 00:41:25 gilles Exp $ */ +/* $OpenBSD: util.c,v 1.116 2015/10/05 22:08:14 stsp Exp $ */ /* * Copyright (c) 2000,2001 Markus Friedl. All rights reserved. @@ -735,6 +735,7 @@ getmailname(char *hostname, size_t len) fatal("exiting"); } memcpy(lbuf, buf, buflen); + buf = lbuf; } if (strlcpy(hostname, buf, len) >= len) -- 2.20.1