Skip to content

Commit

Permalink
ntf sub UPDATE handle unexpected cases
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Jan 22, 2025
1 parent 7f83720 commit 07f380a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/netconf_subscribed_notifications.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ sub_ntf_error(const struct ly_ctx *ly_ctx, int sr_err, const char *fmt, ...)
case SR_ERR_OPERATION_FAILED:
e = nc_err(ly_ctx, NC_ERR_OP_FAILED, NC_ERR_TYPE_APP);
break;
default:
EINT;
free(msg);
return NULL;
}
nc_err_set_msg(e, msg, NULL);
free(msg);
Expand Down

0 comments on commit 07f380a

Please sign in to comment.