From 2c14c76780711ba2fd8db8fc00162af35cf6d373 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9sz=C3=A1ros=20Mih=C3=A1ly?= Date: Fri, 11 May 2018 08:00:44 +0200 Subject: [PATCH] Fix mixed user/total quota params --- ChangeLog | 1 + src/apps/relay/mainrelay.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 983a91a00..005517ff0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ Version 4.5.0.8 'dan Eider': - Fix for Verbose config file option -v cli option overridea - Add a Notice to config about realm default value is the domain name. - Update total allocation usage on client shutdown + - fix total and user quota mix-up 12/10/2017 Oleg Moskalenko Version 4.5.0.7 'dan Eider': diff --git a/src/apps/relay/mainrelay.c b/src/apps/relay/mainrelay.c index 0058f0e34..e8d740d11 100644 --- a/src/apps/relay/mainrelay.c +++ b/src/apps/relay/mainrelay.c @@ -1248,11 +1248,11 @@ static void set_option(int c, char *value) set_default_realm_name(value); break; case 'q': - turn_params.total_quota = (vint)atoi(value); + turn_params.user_quota = (vint)atoi(value); get_realm(NULL)->options.perf_options.user_quota = atoi(value); break; case 'Q': - turn_params.user_quota = (vint)atoi(value); + turn_params.total_quota = (vint)atoi(value); get_realm(NULL)->options.perf_options.total_quota = atoi(value); break; case 's':