diff options
author | Jan Rybar <jrybar@redhat.com> | 2020-01-27 18:07:57 +0000 |
---|---|---|
committer | Jan Rybar <jrybar@redhat.com> | 2020-01-27 18:07:57 +0000 |
commit | 6ebec157a99a0153f1f6ef10e6810cc98b52dfff (patch) | |
tree | 4db2e061e7d573b255c9f02c17fe862ac37c3ddd /src | |
parent | b806f0c0dd715b860b99d0851505408b482eff05 (diff) | |
parent | 0e1d33b473748a63ce76133483ceda3397302857 (diff) | |
download | polkit-6ebec157a99a0153f1f6ef10e6810cc98b52dfff.tar.gz |
Merge branch 'pkagent-bsd-nullptr' into 'master'
Freeing uninitialized memory
See merge request polkit/polkit!44
Diffstat (limited to 'src')
-rw-r--r-- | src/polkitagent/polkitagenthelper-bsdauth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/polkitagent/polkitagenthelper-bsdauth.c b/src/polkitagent/polkitagenthelper-bsdauth.c index b410b45..b105180 100644 --- a/src/polkitagent/polkitagenthelper-bsdauth.c +++ b/src/polkitagent/polkitagenthelper-bsdauth.c @@ -45,7 +45,7 @@ main (int argc, char *argv[]) { struct passwd *pw; const char *user_to_auth; - char *cookie; + char *cookie = NULL; /* clear the entire environment to avoid attacks with libraries honoring environment variables */ |