cast argument to isdigit to unsigned char
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14497 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 - 2004 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1999 - 2005 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -199,7 +199,7 @@ check_host(krb5_context context, const char *path, char *data)
|
|||||||
snprintf(service, sizeof(service), "%u", defport);
|
snprintf(service, sizeof(service), "%u", defport);
|
||||||
}
|
}
|
||||||
ret = getaddrinfo(hostname, service, &hints, &ai);
|
ret = getaddrinfo(hostname, service, &hints, &ai);
|
||||||
if(ret == EAI_SERVICE && !isdigit(service[0])) {
|
if(ret == EAI_SERVICE && !isdigit((unsigned char)service[0])) {
|
||||||
snprintf(service, sizeof(service), "%u", defport);
|
snprintf(service, sizeof(service), "%u", defport);
|
||||||
ret = getaddrinfo(hostname, service, &hints, &ai);
|
ret = getaddrinfo(hostname, service, &hints, &ai);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user