Commit 682753ea authored by Karl Heyes's avatar Karl Heyes

minor cleanup

svn path=/trunk/icecast/; revision=5809
parent aabbde37
...@@ -56,19 +56,19 @@ ...@@ -56,19 +56,19 @@
#define COMMAND_TRANSFORMED_MOVE_CLIENTS 54 #define COMMAND_TRANSFORMED_MOVE_CLIENTS 54
/* Global commands */ /* Global commands */
#define COMMAND_RAW_LIST_MOUNTS 101 #define COMMAND_RAW_LIST_MOUNTS 101
#define COMMAND_RAW_STATS 102 #define COMMAND_RAW_STATS 102
#define COMMAND_RAW_LISTSTREAM 103 #define COMMAND_RAW_LISTSTREAM 103
#define COMMAND_PLAINTEXT_LISTSTREAM 104 #define COMMAND_PLAINTEXT_LISTSTREAM 104
#define COMMAND_TRANSFORMED_LIST_MOUNTS 201 #define COMMAND_TRANSFORMED_LIST_MOUNTS 201
#define COMMAND_TRANSFORMED_STATS 202 #define COMMAND_TRANSFORMED_STATS 202
#define COMMAND_TRANSFORMED_LISTSTREAM 203 #define COMMAND_TRANSFORMED_LISTSTREAM 203
/* Client management commands */ /* Client management commands */
#define COMMAND_RAW_KILL_CLIENT 301 #define COMMAND_RAW_KILL_CLIENT 301
#define COMMAND_RAW_KILL_SOURCE 302 #define COMMAND_RAW_KILL_SOURCE 302
#define COMMAND_TRANSFORMED_KILL_CLIENT 401 #define COMMAND_TRANSFORMED_KILL_CLIENT 401
#define COMMAND_TRANSFORMED_KILL_SOURCE 402 #define COMMAND_TRANSFORMED_KILL_SOURCE 402
#define FALLBACK_RAW_REQUEST "fallbacks" #define FALLBACK_RAW_REQUEST "fallbacks"
#define FALLBACK_TRANSFORMED_REQUEST "fallbacks.xsl" #define FALLBACK_TRANSFORMED_REQUEST "fallbacks.xsl"
...@@ -465,7 +465,7 @@ static void command_move_clients(client_t *client, source_t *source, ...@@ -465,7 +465,7 @@ static void command_move_clients(client_t *client, source_t *source,
return; return;
} }
if (strcmp (dest->mount, source->mount) == 0) if (strcmp (dest->mount, source->mount) == 0)
{ {
client_send_400 (client, "supplied mountpoints are identical"); client_send_400 (client, "supplied mountpoints are identical");
return; return;
......
...@@ -49,6 +49,8 @@ void client_destroy(client_t *client) ...@@ -49,6 +49,8 @@ void client_destroy(client_t *client)
{ {
refbuf_t *refbuf; refbuf_t *refbuf;
if (client == NULL)
return;
/* write log entry if ip is set (some things don't set it, like outgoing /* write log entry if ip is set (some things don't set it, like outgoing
* slave requests * slave requests
*/ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment