mod_netconf: BUGFIX copy-config expected source and config
diff --git a/src/mod_netconf.c b/src/mod_netconf.c
index a24617b..755639e 100644
--- a/src/mod_netconf.c
+++ b/src/mod_netconf.c
@@ -1317,7 +1317,8 @@
 		return create_error("Invalid target repository type requested.");
 	}
 
-	if (source == NULL || config == NULL) {
+	/* source can be missing when config is given */
+	if (source == NULL && config == NULL) {
 		reply = create_error("invalid input parameters - source and config is required.");
 		return reply;
 	}