From 9e3dd6e843273a2394b666326f7de6f6a5ef084e Mon Sep 17 00:00:00 2001 From: eadler Date: Sun, 19 Apr 2015 09:35:46 +0000 Subject: identd: restore memcpy I should not be committing at 2:30am.... Reported by: pluknet --- usr.sbin/inetd/inetd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.sbin') diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index 1587700..178cb58 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -1752,6 +1752,8 @@ more: memmove(sep->se_proto, sep->se_proto + 4, strlen(sep->se_proto) + 1 - 4); sep->se_rpc = 1; + memcpy(&sep->se_ctrladdr4, bind_sa4, + sizeof(sep->se_ctrladdr4)); sep->se_rpc_prog = sep->se_rpc_lowvers = sep->se_rpc_highvers = 0; if ((versp = strrchr(sep->se_service, '/'))) { -- cgit v1.1