diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2017-11-05 13:26:04 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2018-02-27 03:13:07 +0100 |
commit | 2d59daca2fbc7ac26aa2b47c45dfed51278f0e71 (patch) | |
tree | 3c0ddd2ea7084583a9baa54706c35f92cfd2fce4 /nx-X11/programs/Xserver/os/xdmauth.c | |
parent | 78724c4868312044698005325025221e11d7159a (diff) | |
download | nx-libs-2d59daca2fbc7ac26aa2b47c45dfed51278f0e71.tar.gz nx-libs-2d59daca2fbc7ac26aa2b47c45dfed51278f0e71.tar.bz2 nx-libs-2d59daca2fbc7ac26aa2b47c45dfed51278f0e71.zip |
Lift os to XORG-7_1 state
Diffstat (limited to 'nx-X11/programs/Xserver/os/xdmauth.c')
-rw-r--r-- | nx-X11/programs/Xserver/os/xdmauth.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/nx-X11/programs/Xserver/os/xdmauth.c b/nx-X11/programs/Xserver/os/xdmauth.c index 4a59b48f2..eb89f4bc1 100644 --- a/nx-X11/programs/Xserver/os/xdmauth.c +++ b/nx-X11/programs/Xserver/os/xdmauth.c @@ -439,10 +439,12 @@ XdmToID (unsigned short cookie_length, char *cookie) { free (client); free (cookie); + free (plain); return auth->id; } } free (cookie); + free (plain); return (XID) -1; } @@ -464,10 +466,9 @@ XdmFromID (XID id, unsigned short *data_lenp, char **datap) int XdmRemoveCookie (unsigned short data_length, char *data) { - XdmAuthorizationPtr auth, prev; + XdmAuthorizationPtr auth; XdmAuthKeyPtr key_bits, rho_bits; - prev = 0; switch (data_length) { case 16: @@ -487,10 +488,7 @@ XdmRemoveCookie (unsigned short data_length, char *data) if (XdmcpCompareKeys (rho_bits, &auth->rho) && XdmcpCompareKeys (key_bits, &auth->key)) { - if (prev) - prev->next = auth->next; - else - xdmAuth = auth->next; + xdmAuth = auth->next; free (auth); return 1; } |