summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-05-07 13:43:39 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-05-07 17:14:31 -0400
commit3010e6a1cb1a9d57aa37a2367880c8cc0871b06e (patch)
treedda0a1c6ceffb16e729aec0e3284b2ca8bf8c9b9 /src
parent1b18a3fc310932e5afcdaa4bb401c8d368e79c0b (diff)
downloadsssd-3010e6a1cb1a9d57aa37a2367880c8cc0871b06e.tar.gz
sssd-3010e6a1cb1a9d57aa37a2367880c8cc0871b06e.tar.bz2
sssd-3010e6a1cb1a9d57aa37a2367880c8cc0871b06e.zip
Fix memory hierarchy in the ipa timerules
Diffstat (limited to 'src')
-rw-r--r--src/providers/ipa/ipa_timerules.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/providers/ipa/ipa_timerules.c b/src/providers/ipa/ipa_timerules.c
index 1a52eef1..d55a1542 100644
--- a/src/providers/ipa/ipa_timerules.c
+++ b/src/providers/ipa/ipa_timerules.c
@@ -706,7 +706,7 @@ static int parse_periodic_monthly(TALLOC_CTX *ctx,
JMP_NEOK(ret);
ret = copy_substring(mpctx, str, "interval_day", &match);
JMP_NEOK(ret);
- BUFFER_OR_JUMP(ctx, per->day_of_month, DAY_OF_MONTH_BUFSIZE);
+ BUFFER_OR_JUMP(per, per->day_of_month, DAY_OF_MONTH_BUFSIZE);
ret = interval2bitfield(mpctx, per->day_of_month, match,
1, DAY_OF_MONTH_MAX, NULL);
JMP_NEOK(ret);
@@ -754,7 +754,7 @@ static int parse_periodic_yearly(TALLOC_CTX *ctx,
if (ret == EOK) {
ret = copy_substring(ypctx, str, "day_of_year", &match);
JMP_NEOK(ret);
- BUFFER_OR_JUMP(ypctx, per->day_of_year, DAY_OF_YEAR_BUFSIZE);
+ BUFFER_OR_JUMP(per, per->day_of_year, DAY_OF_YEAR_BUFSIZE);
ret = interval2bitfield(ypctx, per->day_of_year, match,
1, DAY_OF_YEAR_MAX, NULL);
JMP_NEOK(ret);
@@ -766,7 +766,7 @@ static int parse_periodic_yearly(TALLOC_CTX *ctx,
if (ret == EOK) {
ret = copy_substring(ypctx, str, "week_of_year", &match);
JMP_NEOK(ret);
- BUFFER_OR_JUMP(ypctx, per->week_of_year, WEEK_OF_YEAR_BUFSIZE);
+ BUFFER_OR_JUMP(per, per->week_of_year, WEEK_OF_YEAR_BUFSIZE);
ret = interval2bitfield(ypctx, per->week_of_year, match,
1, WEEK_OF_YEAR_MAX, NULL);
JMP_NEOK(ret);
@@ -787,7 +787,7 @@ static int parse_periodic_yearly(TALLOC_CTX *ctx,
talloc_free(match);
ret = copy_substring(ypctx, str, "month_number", &match);
JMP_NEOK(ret);
- BUFFER_OR_JUMP(ypctx, per->month, MONTH_BUFSIZE);
+ BUFFER_OR_JUMP(per, per->month, MONTH_BUFSIZE);
ret = interval2bitfield(ypctx, per->month, match,
1, MONTH_MAX, names_months);
JMP_NEOK(ret);