fixed problem where a NULL unixconfig was causing segfault
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 22 Aug 2005 20:07:52 +0000 (20:07 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 22 Aug 2005 20:07:52 +0000 (20:07 +0000)
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
src/libtransport/transport_session.c

index 8c8ced8..92ddb48 100644 (file)
@@ -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");
index 07bdad0..44f88a8 100644 (file)
@@ -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 */