summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-03-07 13:45:36 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-04-09 09:12:40 -0400
commit2ba0d4e15f859a3b98b5c520e8b7bbdbff1d6fea (patch)
tree54b3cfb93f5a2c58b80f6ab26ae26144481a2db9
parent00770d240fc442c75373ba2a544518c26466ac84 (diff)
downloadsssd-2ba0d4e15f859a3b98b5c520e8b7bbdbff1d6fea.tar.gz
sssd-2ba0d4e15f859a3b98b5c520e8b7bbdbff1d6fea.tar.xz
sssd-2ba0d4e15f859a3b98b5c520e8b7bbdbff1d6fea.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.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 218c1ed79..631e88a45 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;
}