summaryrefslogtreecommitdiff
path: root/security/krb5-16/files/patch-include::krb5.hin
diff options
context:
space:
mode:
Diffstat (limited to 'security/krb5-16/files/patch-include::krb5.hin')
-rw-r--r--security/krb5-16/files/patch-include::krb5.hin16
1 files changed, 16 insertions, 0 deletions
diff --git a/security/krb5-16/files/patch-include::krb5.hin b/security/krb5-16/files/patch-include::krb5.hin
new file mode 100644
index 000000000000..812664fc0b0e
--- /dev/null
+++ b/security/krb5-16/files/patch-include::krb5.hin
@@ -0,0 +1,16 @@
+Index: include/krb5.hin
+===================================================================
+RCS file: /cvs/krbdev/krb5/src/include/krb5.hin,v
+retrieving revision 1.94.2.5.2.17
+diff -p -u -r1.94.2.5.2.17 krb5.hin
+--- include/krb5.hin 2002/04/16 23:47:53 1.94.2.5.2.17
++++ include/krb5.hin 2003/03/19 00:38:54
+@@ -326,7 +326,7 @@ typedef krb5_const krb5_principal_data F
+ #define krb5_princ_size(context, princ) (princ)->length
+ #define krb5_princ_type(context, princ) (princ)->type
+ #define krb5_princ_name(context, princ) (princ)->data
+-#define krb5_princ_component(context, princ,i) ((princ)->data + i)
++#define krb5_princ_component(context, princ,i) (i < krb5_princ_size(context, princ) ? ((princ)->data + i) : NULL)
+
+ /*
+ * end "base-defs.h"