--- polkitagenthelper.c.orig 2009-09-30 23:25:27.000000000 +0200 +++ polkitagenthelper.c 2009-09-30 23:22:03.000000000 +0200 @@ -171,6 +171,7 @@ #endif /* PAH_DEBUG */ pam_end (pam_h, rc); + pam_h = NULL; #ifdef PAH_DEBUG fprintf (stderr, "polkit-agent-helper-1: sending D-Bus message to PolicyKit daemon\n");