summaryrefslogtreecommitdiffstats
path: root/src/providers/dp_dyndns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/dp_dyndns.c')
-rw-r--r--src/providers/dp_dyndns.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/providers/dp_dyndns.c b/src/providers/dp_dyndns.c
index eb69731b5..1cac3d0fa 100644
--- a/src/providers/dp_dyndns.c
+++ b/src/providers/dp_dyndns.c
@@ -1010,7 +1010,7 @@ be_nsupdate_args(TALLOC_CTX *mem_ctx,
char **argv;
int argc = 0;
- argv = talloc_zero_array(mem_ctx, char *, 4);
+ argv = talloc_zero_array(mem_ctx, char *, 6);
if (argv == NULL) {
return NULL;
}
@@ -1047,6 +1047,22 @@ be_nsupdate_args(TALLOC_CTX *mem_ctx,
argc++;
}
+ if (debug_level >= SSSDBG_TRACE_LIBS) {
+ argv[argc] = talloc_strdup(argv, "-d");
+ if (argv[argc] == NULL) {
+ goto fail;
+ }
+ argc++;
+ }
+
+ if (debug_level >= SSSDBG_TRACE_INTERNAL) {
+ argv[argc] = talloc_strdup(argv, "-D");
+ if (argv[argc] == NULL) {
+ goto fail;
+ }
+ argc++;
+ }
+
return argv;
fail: