rem: search_for_mf_hdr( msg , error ); return ( msg->maxforwards?1:-1); error: return -1;
add: int x, err; char c;   if ( !msg->maxforwards ) { DBG("DEBUG : is_maxfwd_present: searching for max_forwards header\n"); if  ( parse_headers( msg , HDR_MAXFORWARDS )==-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"); }   foo->len = msg->maxforwards->body.len; foo->s   = msg->maxforwards->body.s; while (foo->len &&((c=foo->s[0])==0||c==' '||c=='\n'||c=='\r'||c=='\t')) { foo->len--; foo->s++; } while(foo->len && ((c=foo->s[foo->len-1])==0||c==' '||c=='\n'||c=='\r' ||c=='\t') ) foo->len--;   x = str2s( (unsigned char*)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;
context: int is_maxfwd_present( struct sip_msg* msg ){	search_for_mf_hdr( msg , error );	return ( msg->maxforwards?1:-1);error:	return -1;}