projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a715ede
)
uupps - removed an exit() too fast without thought, reverting
author
Marc Cromme
<marc@indexdata.dk>
Mon, 23 Apr 2007 08:56:52 +0000
(08:56 +0000)
committer
Marc Cromme
<marc@indexdata.dk>
Mon, 23 Apr 2007 08:56:52 +0000
(08:56 +0000)
src/http.c
patch
|
blob
|
history
diff --git
a/src/http.c
b/src/http.c
index
40ffbec
..
189cbe3
100644
(file)
--- a/
src/http.c
+++ b/
src/http.c
@@
-1,4
+1,4
@@
-/* $Id: http.c,v 1.29 2007-04-23 08:15:22 marc Exp $
+/* $Id: http.c,v 1.30 2007-04-23 08:56:52 marc Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
@@
-1003,8
+1003,10
@@
void http_init(const char *addr)
strncpy(hostname, addr, len);
hostname[len] = '\0';
strncpy(hostname, addr, len);
hostname[len] = '\0';
- if (!(he = gethostbyname(hostname)))
+ if (!(he = gethostbyname(hostname))){
yaz_log(YLOG_FATAL, "Unable to resolve '%s'", hostname);
yaz_log(YLOG_FATAL, "Unable to resolve '%s'", hostname);
+ exit(1);
+ }
memcpy(&myaddr.sin_addr.s_addr, he->h_addr_list[0], he->h_length);
port = atoi(pp + 1);
memcpy(&myaddr.sin_addr.s_addr, he->h_addr_list[0], he->h_length);
port = atoi(pp + 1);