From 57ffe8bf9fc1c4c533b5e34ae5f14e5fb04c0533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= Date: Mon, 26 Nov 2012 20:04:08 +0100 Subject: [PATCH] Fix using bad struct item for auth algorithm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- server/mcast.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/mcast.c b/server/mcast.c index de81bac..00a31ab 100644 --- a/server/mcast.c +++ b/server/mcast.c @@ -447,13 +447,13 @@ mcast_config(config_object_t *config, mcast_options *args) value, sizeof(value)-1) == 0) { dbg_printf(1, "Got %s for auth\n", value); if (!strcasecmp(value, "none")) { - args->hash = AUTH_NONE; + args->auth = AUTH_NONE; } else if (!strcasecmp(value, "sha1")) { - args->hash = AUTH_SHA1; + args->auth = AUTH_SHA1; } else if (!strcasecmp(value, "sha256")) { - args->hash = AUTH_SHA256; + args->auth = AUTH_SHA256; } else if (!strcasecmp(value, "sha512")) { - args->hash = AUTH_SHA512; + args->auth = AUTH_SHA512; } else { dbg_printf(1, "Unsupported auth: %s\n", value); ++errors;