jdblair/sunspec — Issue #4: specifying a hostname instead of an ip address for -i option causes segfault
Author: jdblair
Created: 2012-02-25 18:20:53+00:00
State: open

If you specify a hostname argument to the -i option, like "-i zaphod.dyndns.org" the tool segfaults rather than doing the right thing.

jdblair@lappy:~/git/sunspec/src$ suns -i zaphod.dyndns.org
The IP string has been truncated
ERROR: cannot initialize modbus context: Invalid argument
Segmentation fault