|
@@ -686,6 +686,14 @@ int srp_commit(kcontext_t *context)
|
|
|
assert(context);
|
|
|
sess = srp_udata_sr_sess(context);
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if (sr_validate(sess, NULL, 0) != SR_ERR_OK) {
|
|
|
+ srp_error(sess, ERRORMSG "Invalid candidate configuration\n");
|
|
|
+ goto err;
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if (sr_session_switch_ds(sess, SR_DS_RUNNING)) {
|
|
|
srp_error(sess, ERRORMSG "Can't connect to running-config data store\n");
|