Fix #4597: Do string argument checks before a possible strtol
authorArmin Novak <armin.novak@thincast.com>
Wed, 2 May 2018 10:57:34 +0000 (12:57 +0200)
committerArmin Novak <armin.novak@thincast.com>
Wed, 2 May 2018 10:57:34 +0000 (12:57 +0200)
commit1fd5c53a747373b5c7b20e4dbcb2aa5906f9cbff
tree36499479da9c4d28c64b558ee1376518162992dc
parentfbb21e3499d794ec29bbac86c820fd1b6ef00b21
Fix #4597: Do string argument checks before a possible strtol

strtol sets errno, which must be reset if it is no abort condition.
Invert the comparisons to avoid that.
client/common/cmdline.c