diff options
author | René Scharfe <rene.scharfe@lsrfire.ath.cx> | 2008-12-21 02:12:11 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-12-21 01:48:23 -0800 |
commit | 8f1482536ad680fcd738158e76e254a534f2e690 (patch) | |
tree | 2b3b49ebe6e1c9a894b80250c9efcc04c47df5ff /http-push.c | |
parent | Add a documentat on how to revert a faulty merge (diff) | |
download | tgif-8f1482536ad680fcd738158e76e254a534f2e690.tar.xz |
connect.c: stricter port validation, silence compiler warning
In addition to checking if the provided port is numeric, also check
that the string isn't empty and that the port number is within the
valid range. Incidentally, this silences a compiler warning about
ignoring strtol's return value.
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-push.c')
0 files changed, 0 insertions, 0 deletions