Close the connect socket as well as the listen socket on completion.

Update copyright.
This commit is contained in:
Robert Watson 2005-05-16 00:53:38 +00:00
parent a398848137
commit 868ee99ce3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146250

View file

@ -1,5 +1,5 @@
/*-
* Copyright (c) 2004 Robert N. M. Watson
* Copyright (c) 2004-2005 Robert N. M. Watson
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -104,7 +104,7 @@ main(int argc, char *argv[])
if (connect(connect_sock, (struct sockaddr *)&sin, sizeof(sin)) < 0)
errx(-1, "connect() for connect socket: %s", strerror(errno));
close(connect_sock);
close(listen_sock);
return (0);