Commit e32e5977 authored by Bernhard Link's avatar Bernhard Link

fix c&p error

parent 9be2d3a3
......@@ -868,13 +868,13 @@ static size_t print_parameters(struct connection *c,const unsigned char *buffer,
p = ((struct parameter *)p->constants)-1;
continue;
} else if( p->type == ft_IF16 ) {
if( ofs+3 < len &&
if( ofs+1 < len &&
getCARD16(ofs) == (unsigned char)(p->name[1])
+ (unsigned int)0x100*(unsigned char)(p->name[0]))
p = ((struct parameter *)p->constants)-1;
continue;
} else if( p->type == ft_IF32 ) {
if( ofs+1 < len &&
if( ofs+3 < len &&
getCARD32(ofs) == (unsigned char)(p->name[3])
+ (((unsigned long)((unsigned char)(p->name[2])))>>8)
+ (((unsigned long)((unsigned char)(p->name[1])))>>16)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment