]> git.saurik.com Git - apt.git/blobdiff - methods/https.cc
DropPrivs: Move the re-set uid/gid thing to the end of the function
[apt.git] / methods / https.cc
index a40f377101c7b836d9ac55c1eb59755f92c9fab3..a74d2a38be4ba416ee7f1bfffbc1fdc3e43a9e0a 100644 (file)
@@ -443,11 +443,11 @@ int main()
 {
    setlocale(LC_ALL, "");
 
-   DropPrivs();
-
    HttpsMethod Mth;
    curl_global_init(CURL_GLOBAL_SSL) ;
 
+   Mth.DropPrivsOrDie();
+
    return Mth.Run();
 }