Commit 2f460a2
committed
FAPI: Fix segfault if Fapi_SetBranchCB is not called.
* An segfault did occur when PolicyOR is defined for an object but
the callback for the branch selection was not set.
* The current auth object, when policy authorize nv was executed, was
not set. So a strange string was passed to the callback as
object path of the object to be authorized.
Signed-off-by: Juergen Repp <juergen_repp@web.de>1 parent 5f682db commit 2f460a2
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1533 | 1533 | | |
1534 | 1534 | | |
1535 | 1535 | | |
| 1536 | + | |
1536 | 1537 | | |
1537 | 1538 | | |
1538 | 1539 | | |
| 1540 | + | |
1539 | 1541 | | |
1540 | 1542 | | |
1541 | 1543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
311 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
312 | 314 | | |
313 | 315 | | |
314 | 316 | | |
| |||
0 commit comments