add: if (x > 255){ LOG(L_NOTICE, "is_maxfwd_present: value %d decreased to 255\n", x); x = 255; }
context: int is_maxfwd_present( struct sip_msg* msg , str *foo){	int x, err;	/* hey man, run -Wall before committing ... -jiri	char c; */	/* lookup into the message for MAX FORWARDS header*/	if ( !msg->maxforwards ) {		DBG("DEBUG : is_maxfwd_present: searching for max_forwards header\n");		if  ( parse_headers( msg , HDR_MAXFORWARDS, 0 )==-1 ){			LOG( L_ERR , "ERROR: is_maxfwd_present :"				" parsing MAX_FORWARD header failed!\n");			return -2;		}		if (!msg->maxforwards) {			DBG("DEBUG: is_maxfwd_present: max_forwards header not found!\n");			return -1;		}	}else{		DBG("DEBUG : is_maxfwd_present: max_forward header already found!\n");	}	/* if header is present, trim to get only the string containing numbers */	trim_len( foo->len , foo->s , msg->maxforwards->body );	/* convert from string to number */	x = str2s( foo->s,foo->len,&err);	if (err){		LOG(L_ERR, "ERROR: is_maxfwd_zero :"			" unable to parse the max forwards number !\n");		return -2;	}	DBG("DEBUG: is_maxfwd_present: value = %d \n",x);	return x;}