1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Fix CodeQL issues (#1173)

This commit is contained in:
Tom Limoncelli
2021-06-24 18:15:09 -04:00
committed by GitHub
parent 311a6d74ce
commit 6d64fc8cac
4 changed files with 37 additions and 21 deletions

View File

@@ -88,7 +88,7 @@ func ipMatchesClasslessDomain(ip net.IP, domain string) bool {
}
// atob converts a to a byte value or panics.
func atob(s string) byte {
func atob(s string) uint8 {
if i, err := strconv.Atoi(s); err == nil {
if i < 256 {
return byte(i)