commit | 81d4b3e0cd5348a0c38b8956792ea521c0990054 | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.ibm.com> | Fri Mar 25 22:41:00 2022 -0400 |
committer | Stefan Berger <stefanb@us.ibm.com> | Mon Mar 28 09:21:38 2022 -0400 |
tree | a5b999281a282ee6bd517b1740c9b915c105e8f5 | |
parent | 2579038d766a6793ee1e739f16658a5b643e16e9 [diff] |
swtpm_ioctl: Use unsigned int tcp_port to filter out negative port numbers The port being parsed must be given as unsigned int so that the comparison of *tcp_port >= 65536 also filters out negative numbers passed via the command line. Previously one could pass -1 and swtpm_ioctl would try to connect to port 65535. Resolves: https://github.com/stefanberger/swtpm/issues/679 Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>