From 4b0c679c4dc3e3725de5c0c55ed60f24b87c6edd Mon Sep 17 00:00:00 2001 From: Amin Ben Romdhane <amin.benromdhane@iopsys.eu> Date: Tue, 11 Jun 2024 14:57:21 +0200 Subject: [PATCH] Define internal variables inside micro-service --- src/dynamicdnsmngr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dynamicdnsmngr.c b/src/dynamicdnsmngr.c index 91f976b..a677b92 100644 --- a/src/dynamicdnsmngr.c +++ b/src/dynamicdnsmngr.c @@ -722,6 +722,8 @@ static int get_DynamicDNSServer_Protocol(char *refparam, struct dmctx *ctx, void static int set_DynamicDNSServer_Protocol(char *refparam, struct dmctx *ctx, void *data, char *instance, char *value, int action) { + char *SupportedProtocols[] = {"HTTP", "HTTPS", NULL}; + switch (action) { case VALUECHECK: if (bbfdm_validate_string(ctx, value, -1, -1, SupportedProtocols, NULL)) -- GitLab