From: wessels <> Date: Sat, 22 May 1999 04:16:56 +0000 (+0000) Subject: null pointer access on rep X-Git-Tag: SQUID_3_0_PRE1~2190 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1644d9d8fa5acf012f4d328f4c0a2e1483a2a528;p=thirdparty%2Fsquid.git null pointer access on rep --- diff --git a/src/client_side.cc b/src/client_side.cc index 355d8d1c2d..6acd06a4b0 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.456 1999/05/19 19:57:39 wessels Exp $ + * $Id: client_side.cc,v 1.457 1999/05/21 22:16:56 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -1581,7 +1581,7 @@ clientSendMoreData(void *data, char *buf, ssize_t size) } } rep = clientBuildReply(http, buf, size); - if (clientReplyBodyTooLarge(rep->content_length)) { + if (rep && clientReplyBodyTooLarge(rep->content_length)) { ErrorState *err = errorCon(ERR_TOO_BIG, HTTP_FORBIDDEN); err->request = requestLink(http->request); storeUnregister(http->entry, http);