diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-03-07 13:45:36 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-03-08 08:09:56 -0500 |
commit | 1c383994ae898fa862f93c43501395bae6304f28 (patch) | |
tree | 5dbc2aa5895174ce3e58117b4215bc23b8d507ce | |
parent | 606d2d03833903f00d40f9810d4dccd04a752e76 (diff) | |
download | sssd-1c383994ae898fa862f93c43501395bae6304f28.tar.gz sssd-1c383994ae898fa862f93c43501395bae6304f28.tar.bz2 sssd-1c383994ae898fa862f93c43501395bae6304f28.zip |
Autofs: operate on contents of double-pointer, not address
https://fedorahosted.org/sssd/ticket/1234
-rw-r--r-- | src/sss_client/autofs/sss_autofs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sss_client/autofs/sss_autofs.c b/src/sss_client/autofs/sss_autofs.c index 218c1ed7..631e88a4 100644 --- a/src/sss_client/autofs/sss_autofs.c +++ b/src/sss_client/autofs/sss_autofs.c @@ -220,15 +220,15 @@ sss_getautomntent_data_save(const char *mapname, uint8_t **repbuf, size_t replen uint32_t num; rp = 0; - SAFEALIGN_COPY_UINT32(&num, repbuf+rp, &rp); + SAFEALIGN_COPY_UINT32(&num, *repbuf+rp, &rp); if (num == 0) { - free(repbuf); + free(*repbuf); return ENOENT; } sss_getautomntent_data.mapname = strdup(mapname); if (sss_getautomntent_data.mapname == NULL) { - free(repbuf); + free(*repbuf); return ENOENT; } |