Commit aec8c7ec authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

addr might be NULL if we are called from the prefetcher.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@578 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent f13a521c
......@@ -199,8 +199,10 @@ SES_New(struct sockaddr *addr, unsigned len)
sm->sess.sockaddr = sm->sockaddr;
assert(len < sizeof(sm->sockaddr));
memcpy(sm->sess.sockaddr, addr, len);
sm->sess.sockaddrlen = len;
if (addr != NULL) {
memcpy(sm->sess.sockaddr, addr, len);
sm->sess.sockaddrlen = len;
}
http_Setup(&sm->http, (void *)(sm + 1), heritage.mem_workspace);
......
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