From: Tomasz Buchert Date: Sun, 15 Feb 2015 23:57:29 +0000 (+0100) Subject: Fix crash in the apt-transport-https when Owner is NULL X-Git-Tag: 1.0.9.7~1 X-Git-Url: http://git.hcoop.net/ntk/apt.git/commitdiff_plain/0c2dc43d4fe1d026650b5e2920a021557f9534a6 Fix crash in the apt-transport-https when Owner is NULL Do not crash in ServerState::HeaderLine if there is no Owner. Closes: #778375 --- diff --git a/methods/server.cc b/methods/server.cc index cb0341d5..e321e023 100644 --- a/methods/server.cc +++ b/methods/server.cc @@ -129,7 +129,7 @@ bool ServerState::HeaderLine(string Line) if (elements == 3) { Code[0] = '\0'; - if (Owner->Debug == true) + if (Owner != NULL && Owner->Debug == true) clog << "HTTP server doesn't give Reason-Phrase for " << Result << std::endl; } else if (elements != 4)