This does not fix the decoding probelm with excessive bytes persists YAZ-830
int lspace = 0;
*hr_p = hr;
+ hr->method = 0;
+ hr->version = 0;
+ hr->path = 0;
+ hr->headers = 0;
+ hr->content_buf = 0;
+ hr->content_len = 0;
/* method .. */
for (i = 0; buf[i] != ' '; i++)
if (i >= size-5 || i > 30)
char *cp;
int top0 = o->op->top;
+ if (!hr->method || !hr->path)
+ return 0;
odr_write(o, hr->method, strlen(hr->method));
odr_write(o, " ", 1);
cp = strchr(hr->path, '#');