From 1644d9d8fa5acf012f4d328f4c0a2e1483a2a528 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sat, 22 May 1999 04:16:56 +0000 Subject: [PATCH] null pointer access on rep --- src/client_side.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.3