diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2018-02-08 18:02:07 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2018-02-08 18:02:07 +0000 |
commit | 8144ed9b5932e5e620c0a19811063dc9bb512853 (patch) | |
tree | 6ea163252c430fd273231b2660f557b67b01df6f /usr.sbin/snmpd/snmpe.c | |
parent | 0740f610fd5619e60ae9e935b5410c820d897b3f (diff) |
Kill ber.c support for direct fd read/writes
This mechanism is already unused and annotated with lots of XXX's, no
need to keep it around. ok claudio@
Diffstat (limited to 'usr.sbin/snmpd/snmpe.c')
-rw-r--r-- | usr.sbin/snmpd/snmpe.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/snmpe.c b/usr.sbin/snmpd/snmpe.c index 74d1b44c252..c8480a03634 100644 --- a/usr.sbin/snmpd/snmpe.c +++ b/usr.sbin/snmpd/snmpe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpe.c,v 1.50 2017/08/12 16:31:09 florian Exp $ */ +/* $OpenBSD: snmpe.c,v 1.51 2018/02/08 18:02:06 jca Exp $ */ /* * Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org> @@ -514,7 +514,6 @@ snmpe_recvmsg(int fd, short sig, void *arg) msg->sm_datalen = (size_t)len; bzero(&msg->sm_ber, sizeof(msg->sm_ber)); - msg->sm_ber.fd = -1; ber_set_application(&msg->sm_ber, smi_application); ber_set_readbuf(&msg->sm_ber, msg->sm_data, msg->sm_datalen); |