struct htx_sl *sl = http_find_stline(htx);
struct ist uri, vsn;
+ if (!sl)
+ return 0;
+
/* Start by copying old uri and version */
chunk_memcat(temp, HTX_SL_REQ_UPTR(sl), HTX_SL_REQ_ULEN(sl)); /* uri */
uri = ist2(temp->area, HTX_SL_REQ_ULEN(sl));
struct htx_sl *sl = http_find_stline(htx);
struct ist meth, vsn;
+ if (!sl)
+ return 0;
+
/* Start by copying old method and version */
chunk_memcat(temp, HTX_SL_REQ_MPTR(sl), HTX_SL_REQ_MLEN(sl)); /* meth */
meth = ist2(temp->area, HTX_SL_REQ_MLEN(sl));
struct ist meth, uri, vsn, p;
size_t plen = 0;
+ if (!sl)
+ return 0;
+
uri = htx_sl_req_uri(sl);
p = http_get_path(uri);
if (!p.ptr)
struct ist meth, uri, vsn, q;
int offset = 1;
+ if (!sl)
+ return 0;
+
uri = htx_sl_req_uri(sl);
q = uri;
while (q.len > 0 && *(q.ptr) != '?') {
struct htx_sl *sl = http_find_stline(htx);
struct ist vsn, reason;
+ if (!sl)
+ return 0;
+
/* Start by copying old uri and version */
chunk_memcat(temp, HTX_SL_RES_VPTR(sl), HTX_SL_RES_VLEN(sl)); /* vsn */
vsn = ist2(temp->area, HTX_SL_RES_VLEN(sl));
struct htx_sl *sl = http_find_stline(htx);
struct ist vsn, status;
+ if (!sl)
+ return 0;
+
/* Start by copying old uri and version */
chunk_memcat(temp, HTX_SL_RES_VPTR(sl), HTX_SL_RES_VLEN(sl)); /* vsn */
vsn = ist2(temp->area, HTX_SL_RES_VLEN(sl));