Skip to content

Commit

Permalink
Merge pull request #216 from guruchandru/sync_crash
Browse files Browse the repository at this point in the history
Webpa SetForceSync Crash Fix
  • Loading branch information
shilpa24balaji authored Mar 2, 2022
2 parents 5e83668 + 13e9c18 commit 1c0ca13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/WebConfig/cosa_webconfig_dml.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ X_RDK_WebConfig_SetParamStringValue
}
if( AnscEqualString(ParamName, "ForceSync", TRUE))
{
int session_status = 0;
if(AnscEqualString(strValue, "telemetry", TRUE))
{
char telemetryUrl[256] = {0};
Expand All @@ -103,7 +104,7 @@ X_RDK_WebConfig_SetParamStringValue
}
}
/* save update to backup */
if(setForceSync(strValue, "", 0) == 1)
if(setForceSync(strValue, "", &session_status) == 1)
{
return TRUE;
}
Expand Down
2 changes: 1 addition & 1 deletion source/WebConfig/cosa_webconfig_internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ int setWebConfigParameterValues(parameterValStruct_t *val, int paramCount, char
else //pass empty transaction id when Force sync is with empty doc
{
WebcfgDebug("setWebConfigParameterValues empty setForceSync\n");
ret = setForceSync(val[i].parameterValue, "", 0);
ret = setForceSync(val[i].parameterValue, "", &session_status);
}
if(session_status)
{
Expand Down

0 comments on commit 1c0ca13

Please sign in to comment.