commit | 47638ebc36ce5b18d562b508b84442a49f274420 | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.ibm.com> | Fri Mar 25 22:54:21 2022 -0400 |
committer | Stefan Berger <stefanb@us.ibm.com> | Mon Mar 28 09:21:38 2022 -0400 |
tree | 7a8952da2da30a6253ef576e67037a9033a2d5ac | |
parent | 81d4b3e0cd5348a0c38b8956792ea521c0990054 [diff] |
swtpm_bios: 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_bios would try to connect. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>