summaryrefslogtreecommitdiffstats
path: root/tests/post_clients.json
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-07-15 11:53:15 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-07-15 11:56:26 +0200
commit88330288e66320df4b243ce77ca90bf3f91e66d7 (patch)
tree8c57550faf91c78fd6aef6d91ecbf6e963135dd3 /tests/post_clients.json
parent3f02d64104fede43074df2e0f229f514d24363fe (diff)
client: fortify check for mandatory cmd json field in shell/output
Revisit 6cbe69e89e71 ("rest: add cmd to shell/output") to reject response with no 'cmd' field, otherwise strdup() crashes when dealing with NULL string. Set retcode to zero, otherwise this value remains uninitialized if no retcode json field is provided by the client.
Diffstat (limited to 'tests/post_clients.json')
0 files changed, 0 insertions, 0 deletions