From 8a01bb5a1f867888e50770a34f1e47487d663c56 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 22 Aug 2005 20:07:52 +0000 Subject: [PATCH] fixed problem where a NULL unixconfig was causing segfault took the sleep out of the apachemods makefile git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@497 9efc2488-bf62-4759-914b-345cdb29e865 --- src/libstack/osrf_system.c | 1 + src/libtransport/transport_session.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libstack/osrf_system.c b/src/libstack/osrf_system.c index 8c8ced8..92ddb48 100644 --- a/src/libstack/osrf_system.c +++ b/src/libstack/osrf_system.c @@ -33,6 +33,7 @@ int osrf_system_bootstrap_client( char* config_file, char* contextnode ) { info_handler("Bootstrapping system with domain %s, port %d, and unixpath %s", domain, iport, unixpath ); transport_client* client = client_init( domain, iport, unixpath, 0 ); + char buf[256]; memset(buf,0,256); char* host = getenv("HOSTNAME"); diff --git a/src/libtransport/transport_session.c b/src/libtransport/transport_session.c index 07bdad0..44f88a8 100644 --- a/src/libtransport/transport_session.c +++ b/src/libtransport/transport_session.c @@ -68,7 +68,10 @@ transport_session* init_transport( char* server, session->port = port; session->server = strdup(server); - session->unix_path = strdup(unix_path); + if(unix_path) + session->unix_path = strdup(unix_path); + session->unix_path = NULL; + session->sock_id = 0; /* this will be handed back to us in callbacks */ -- 2.11.0