summary refs log tree commit diff stats
path: root/src/fe-gtk/sexy-iso-codes.c
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2022-01-17 12:08:16 +0000
committerPatrick <tingping@tingping.se>2022-01-17 18:36:49 -0600
commit91adfb5917d31a7c29d6c0536f1e301542577e81 (patch)
tree8182dcf7b9c6586b64ad0b0bc6f82f705994a1a7 /src/fe-gtk/sexy-iso-codes.c
parent9c7109b57869881660fefeaf98a10b7911118117 (diff)
Fix handling invalid ports.
Instead of wrapping around, which is not behaviour any reasonable
user would expect, just use the default port if above 65535.

Disallow connecting on port 0. This port has special meaning and
servers can not listen on it. It is more likely the user just
gave an invalid value to the port field as atoi("invalid") == 0.
Diffstat (limited to 'src/fe-gtk/sexy-iso-codes.c')
0 files changed, 0 insertions, 0 deletions