Deleted Added
full compact
common.c (98748) common.c (103459)
1/*-
2 * Copyright (c) 1998 Dag-Erling Co�dan Sm�rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998 Dag-Erling Co�dan Sm�rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/lib/libfetch/common.c 98748 2002-06-24 12:18:41Z des $");
30__FBSDID("$FreeBSD: head/lib/libfetch/common.c 103459 2002-09-17 05:54:33Z fenner $");
31
32#include <sys/param.h>
33#include <sys/socket.h>
34#include <sys/time.h>
35#include <sys/uio.h>
36#include <netinet/in.h>
37
38#include <errno.h>

--- 227 unchanged lines hidden (view full) ---

266 sd = -1;
267 }
268 freeaddrinfo(res0);
269 if (sd == -1) {
270 _fetch_syserr();
271 return (NULL);
272 }
273
31
32#include <sys/param.h>
33#include <sys/socket.h>
34#include <sys/time.h>
35#include <sys/uio.h>
36#include <netinet/in.h>
37
38#include <errno.h>

--- 227 unchanged lines hidden (view full) ---

266 sd = -1;
267 }
268 freeaddrinfo(res0);
269 if (sd == -1) {
270 _fetch_syserr();
271 return (NULL);
272 }
273
274 if ((conn = _fetch_reopen(sd)) == NULL)
274 if ((conn = _fetch_reopen(sd)) == NULL) {
275 _fetch_syserr();
275 close(sd);
276 close(sd);
277 }
276 return (conn);
277}
278
279
280/*
281 * Enable SSL on a connection.
282 */
283int

--- 283 unchanged lines hidden ---
278 return (conn);
279}
280
281
282/*
283 * Enable SSL on a connection.
284 */
285int

--- 283 unchanged lines hidden ---