/* Check if the length of the meta key is all right */
- if(strlen(buffer) != len * 2) {
+ if(strlen(buffer) != (size_t)len * 2) {
logger(LOG_ERR, "Possible intruder %s (%s): %s", c->name, c->hostname, "wrong keylength");
return false;
}
/* Check if the length of the challenge is all right */
- if(strlen(buffer) != len * 2) {
+ if(strlen(buffer) != (size_t)len * 2) {
logger(LOG_ERR, "Possible intruder %s (%s): %s", c->name,
c->hostname, "wrong challenge length");
return false;
/* Check if the length of the hash is all right */
- if(strlen(hishash) != EVP_MD_size(c->outdigest) * 2) {
+ if(strlen(hishash) != (size_t)EVP_MD_size(c->outdigest) * 2) {
logger(LOG_ERR, "Possible intruder %s (%s): %s", c->name,
c->hostname, "wrong challenge reply length");
return false;
c->options |= OPTION_TCPONLY | OPTION_INDIRECT;
}
- if(myself->options & OPTION_PMTU_DISCOVERY) {
+ if(myself->options & OPTION_PMTU_DISCOVERY && !(c->options & OPTION_TCPONLY)) {
c->options |= OPTION_PMTU_DISCOVERY;
}