diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-10-07 11:15:23 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2010-10-07 11:16:19 -0400 |
commit | ec33e38e9a44afcce8bb40043ccf1615f4f3b3fa (patch) | |
tree | 6b4a8411ee104fcba94e150931ce16ad0289ee80 | |
parent | 3e98d8ddadcdede663d38853f68fd605e2457b96 (diff) | |
download | freeipa-ec33e38e9a44afcce8bb40043ccf1615f4f3b3fa.tar.gz freeipa-ec33e38e9a44afcce8bb40043ccf1615f4f3b3fa.tar.xz freeipa-ec33e38e9a44afcce8bb40043ccf1615f4f3b3fa.zip |
pwd-plugin: Fix unresolve symbol
This fixes a har crash when someone tries to fetch a keytab
-rw-r--r-- | daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h | 1 | ||||
-rw-r--r-- | daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h index 16e0efbe6..0388f5d43 100644 --- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h +++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd.h @@ -150,6 +150,7 @@ struct ipapwd_keyset { int num_keys; }; +void encode_int16(unsigned int val, unsigned char *p); struct berval *encode_keys(struct ipapwd_keyset *kset); void ipapwd_keyset_free(struct ipapwd_keyset **pkset); diff --git a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c index f11efa3bd..9c047b712 100644 --- a/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c +++ b/daemons/ipa-slapi-plugins/ipa-pwd-extop/ipapwd_encoding.c @@ -234,8 +234,7 @@ void ipapwd_keyset_free(struct ipapwd_keyset **pkset) } - -static inline void encode_int16(unsigned int val, unsigned char *p) +void encode_int16(unsigned int val, unsigned char *p) { p[1] = (val >> 8) & 0xff; p[0] = (val ) & 0xff; |