value = cf_pair_value(cp);
- memset(&myhome, 0, sizeof(&myhome));
+ memset(&myhome, 0, sizeof(myhome));
myhome.name = value;
myhome.type = server_type;
* DES, so we'll use it's hmac functionality also -- saves us from
* having to collect the data to be signed into one contiguous piece.
*/
- HMAC_Init(&hmac_ctx, key, sizeof(key), EVP_md5());
+ HMAC_Init(&hmac_ctx, key, sizeof(key[0] * 16), EVP_md5());
HMAC_Update(&hmac_ctx, challenge, clen);
HMAC_Update(&hmac_ctx, (unsigned char *) &flags, 4);
HMAC_Update(&hmac_ctx, (unsigned char *) &when, 4);
const char *xlat_name;
int exitstatus = 0, argc=0;
- embed = rad_malloc(4*(sizeof(char *)));
- memset(embed, 0, sizeof(4*(sizeof(char *))));
+ embed = rad_malloc(4 * sizeof(char *));
+ memset(embed, 0, 4 *sizeof(char *));
/*
* Set up a storage area for instance data
*/