vici: Return default value for get_int() if message value is empty string
authorMartin Willi <martin@revosec.ch>
Tue, 14 Oct 2014 10:13:32 +0000 (12:13 +0200)
committerMartin Willi <martin@revosec.ch>
Tue, 14 Oct 2014 14:33:10 +0000 (16:33 +0200)
commitbdfbecb3e638f793211b5e0eabf6e469ecedc429
treef8a8ad5ae4e37d9de8e7114bf7b576f38df175b7
parent784916e28dbbba0e0a02a5b2ea0ef5286b70d340
vici: Return default value for get_int() if message value is empty string

This is the behavior of some strtol() implementations, and it makes sense,
so force it.
src/libcharon/plugins/vici/suites/test_message.c
src/libcharon/plugins/vici/vici_message.c