mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
krb5: bump to version 1.13.3 and fix uninitialized warning/error
Version 1.13.3 has a tar.gz so the OpenWRT default Build/Prepare
rule can be used with MD5 checksum.
Add patch to fix build:
ktutil_funcs.c: In function 'ktutil_delete':
ktutil_funcs.c:75:28: error: 'prev' may be used uninitialized in this function [-Werror=maybe-uninitialized]
prev->next = lp->next;
There does not seem to be a way for 'prev' being uninitialized
(logically), however the compiler does not see that, because
'prev' is dependent on i >= 1.
So, we just need to initialize it to NULL.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/kadmin/ktutil/ktutil_funcs.c b/src/kadmin/ktutil/ktutil_funcs.c
|
||||
index 20a348c..97baff0 100644
|
||||
--- a/src/kadmin/ktutil/ktutil_funcs.c
|
||||
+++ b/src/kadmin/ktutil/ktutil_funcs.c
|
||||
@@ -67,7 +67,7 @@ krb5_error_code ktutil_delete(context, list, idx)
|
||||
krb5_kt_list lp, prev;
|
||||
int i;
|
||||
|
||||
- for (lp = *list, i = 1; lp; prev = lp, lp = lp->next, i++) {
|
||||
+ for (prev = NULL, lp = *list, i = 1; lp; prev = lp, lp = lp->next, i++) {
|
||||
if (i == idx) {
|
||||
if (i == 1)
|
||||
*list = lp->next;
|
||||
Reference in New Issue
Block a user