[xiph-cvs] r6615 - icecast/trunk/icecast/src

oddsock at xiph.org oddsock at xiph.org
Tue May 4 21:30:51 PDT 2004



Author: oddsock
Date: 2004-05-03 10:56:57 -0400 (Mon, 03 May 2004)
New Revision: 6615

Modified:
   icecast/trunk/icecast/src/admin.c
Log:
proper config file handling...

<p>Modified: icecast/trunk/icecast/src/admin.c
===================================================================
--- icecast/trunk/icecast/src/admin.c	2004-05-03 14:55:44 UTC (rev 6614)
+++ icecast/trunk/icecast/src/admin.c	2004-05-03 14:56:57 UTC (rev 6615)
@@ -611,8 +611,9 @@
     COMMAND_REQUIRE(client, "password", password);
 
     config = config_get_config();
-    host = config->hostname;
+    host = strdup(config->hostname);
     port = config->port;
+    config_release_config();
 
     client->respcode = 200;
     sock_write(client->con->sock,
@@ -626,9 +627,9 @@
         port,
         source->mount
     );
-    
+
+    free(host);
     client_destroy(client);
-    config_release_config();
 }
 static void command_manageauth(client_t *client, source_t *source,
     int response)

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list