diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-05-21 19:00:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-05-21 19:00:06 +0000 |
commit | a0769fe1e18fcff10de0bca7c087aacab3cda1cb (patch) | |
tree | 747fdd318b257650a82ac47016215577a695f6cb /usr.sbin | |
parent | 9cee606ba659f80c130fce8e59b9e433577958fb (diff) |
init fromlen; andrushock@korovino.net
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/apmd/apmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/apmd/apmd.c b/usr.sbin/apmd/apmd.c index f8d11482c2c..95d8521b300 100644 --- a/usr.sbin/apmd/apmd.c +++ b/usr.sbin/apmd/apmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: apmd.c,v 1.29 2003/09/26 17:03:22 deraadt Exp $ */ +/* $OpenBSD: apmd.c,v 1.30 2004/05/21 19:00:05 deraadt Exp $ */ /* * Copyright (c) 1995, 1996 John T. Kohl @@ -216,6 +216,7 @@ handle_client(int sock_fd, int ctl_fd) struct apm_command cmd; struct apm_reply reply; + fromlen = sizeof(from); cli_fd = accept(sock_fd, (struct sockaddr *)&from, &fromlen); if (cli_fd == -1) { syslog(LOG_INFO, "client accept failure: %m"); |