Skip to content

Commit

Permalink
Bug 4861: HTTPMSGLOCK missing pointer safety (squid-cache#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
yadij committed Jul 8, 2018
1 parent 42129b9 commit 5f7b22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HttpMsg.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class HttpMsg : public RefCountable
int httpMsgIsolateHeaders(const char **parse_start, int len, const char **blk_start, const char **blk_end);

#define HTTPMSGUNLOCK(a) if (a) { if ((a)->unlock() == 0) delete (a); (a)=NULL; }
#define HTTPMSGLOCK(a) (a)->lock()
#define HTTPMSGLOCK(a) if (a) { (a)->lock(); }

#endif /* SQUID_HTTPMSG_H */

0 comments on commit 5f7b22d

Please sign in to comment.