summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:52:23 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:52:23 +0000
commit7f9b781e30dbf73725a30df7e4608d58fe6e2386 (patch)
tree415f97719aee3eca3f736ceb54e8f061feba2038 /methods
parenta4edf53b885ce8559115eaf2c4836ec1f76b07ec (diff)
Corrected call to getsockopt
Author: jgg Date: 1999-01-04 00:51:23 GMT Corrected call to getsockopt
Diffstat (limited to 'methods')
-rw-r--r--methods/http.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 4889919dd..0c7445d76 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: http.cc,v 1.19 1998/12/31 05:45:26 jgg Exp $
+// $Id: http.cc,v 1.20 1999/01/04 00:51:23 jgg Exp $
/* ######################################################################
HTTP Aquire Method - This is the HTTP aquire method for APT.
@@ -346,7 +346,7 @@ bool ServerState::Open()
return _error->Errno("select","Select failed");
if (Res == 0)
return _error->Error("Could not connect, connection timed out");
- unsigned int Err,Len;
+ unsigned int Err,Len=sizeof(Err);
if (getsockopt(ServerFd,SOL_SOCKET,SO_ERROR,&Err,&Len) != 0)
return _error->Errno("getsockopt","Failed");
if (Err != 0)