Commit fa1915c4 authored by Philipp Schafft's avatar Philipp Schafft Committed by Philipp Schafft

Fix: Fixed regression introduced by r19250.

This fixes the regression introduced by r19250 (461a5375).
The fix checks if the source client is actually known before printing it's IP-Address.

See also: #2016
parent 13f50dae
......@@ -878,7 +878,11 @@ static void source_shutdown (source_t *source)
mount_proxy *mountinfo;
source->running = 0;
ICECAST_LOG_INFO("Source from %s at \"%s\" exiting", source->con->ip, source->mount);
if (source->con && source->con->ip) {
ICECAST_LOG_INFO("Source from %s at \"%s\" exiting", source->con->ip, source->mount);
} else {
ICECAST_LOG_INFO("Source at \"%s\" exiting", source->mount);
}
mountinfo = config_find_mount (config_get_config(), source->mount, MOUNT_TYPE_NORMAL);
if (mountinfo)
......
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