pwd-plugin: Fix unresolve symbol

This fixes a har crash when someone tries to fetch a keytab
This commit is contained in:
Simo Sorce
2010-10-07 11:15:23 -04:00
parent 3e98d8ddad
commit ec33e38e9a
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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;