summaryrefslogtreecommitdiff
path: root/src/sss_client
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-03-07 13:45:36 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-03-08 08:09:56 -0500
commit1c383994ae898fa862f93c43501395bae6304f28 (patch)
tree5dbc2aa5895174ce3e58117b4215bc23b8d507ce /src/sss_client
parent606d2d03833903f00d40f9810d4dccd04a752e76 (diff)
downloadsssd-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
Diffstat (limited to 'src/sss_client')
-rw-r--r--src/sss_client/autofs/sss_autofs.c6
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;
}