[rtems-libbsd commit] ROUTE(8): Initialize file descriptor

Sebastian Huber sebh at rtems.org
Fri Dec 20 14:29:29 UTC 2013


Module:    rtems-libbsd
Branch:    master
Commit:    aba4586df3c65b0ec0ecf3b3756c822d10cc3b7f
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=aba4586df3c65b0ec0ecf3b3756c822d10cc3b7f

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Dec 20 14:24:33 2013 +0100

ROUTE(8): Initialize file descriptor

---

 freebsd/sbin/route/route.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/freebsd/sbin/route/route.c b/freebsd/sbin/route/route.c
index 1e09589..147a5cd 100644
--- a/freebsd/sbin/route/route.c
+++ b/freebsd/sbin/route/route.c
@@ -214,6 +214,7 @@ int rtems_bsd_command_route(int argc, char *argv[])
 		mc.argv = argv;
 		mc.c = c;
 
+		c->s = -1;
 		c->aflen = sizeof(struct sockaddr_in);
 		TAILQ_INIT(&c->fibl_head);
 




More information about the vc mailing list