From b8ab793867515f6a705f38b18f9b5e6a1764f132 Mon Sep 17 00:00:00 2001 From: Karl Heyes Date: Sat, 22 Sep 2007 01:21:17 +0000 Subject: [PATCH] make sure mount authentication has a type specified svn path=/icecast/trunk/icecast/; revision=13877 --- src/auth.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/auth.c b/src/auth.c index d1ce9113..0f5d305e 100644 --- a/src/auth.c +++ b/src/auth.c @@ -529,6 +529,11 @@ int auth_release_listener (client_t *client) static int get_authenticator (auth_t *auth, config_options_t *options) { + if (auth->type == NULL) + { + WARN0 ("no authentication type defined"); + return -1; + } do { DEBUG1 ("type is %s", auth->type);