commit | 6d8a972e694bfd0435ec84ed48752601ec682f9e | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Mon Feb 10 14:56:40 2020 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Mon Feb 10 15:01:08 2020 +0100 |
tree | 112d95176f3dfd28209563a316e6d23d52dac434 | |
parent | ca5800ab18e06098322317f07dc760e9dadaf976 [diff] [blame] |
log BUGFIX generate libyang path ... because it is retrieved by other functions. Fixes #207
diff --git a/src/messages_server.c b/src/messages_server.c index 26ce1b8..98d917a 100644 --- a/src/messages_server.c +++ b/src/messages_server.c
@@ -470,7 +470,7 @@ break; case LYVE_INELEM: str = ly_errpath(ctx); - if (!strcmp(str, "/")) { + if (!str || !strcmp(str, "/")) { e = nc_err(NC_ERR_OP_NOT_SUPPORTED, NC_ERR_TYPE_APP); /* keep default message */ return e;