(main): Fix typo and misspellings errors

This commit is contained in:
Sebastien Badia 2020-11-06 00:49:23 +01:00
parent cff4a52c50
commit 3e49360884
No known key found for this signature in database
GPG key ID: 8716CE4614A452D8
7 changed files with 37 additions and 37 deletions

View file

@ -394,7 +394,7 @@ void radiussend(uint16_t r, uint8_t state)
p[1] = 6;
*(uint32_t *) (p + 2) = htonl((state == RADIUSJUSTAUTH ? 8 : 2)); // Authenticate only or Framed-User respectevily
p += p[1];
*p = 7; // Framed-Protocol
p[1] = htonl((state == RADIUSJUSTAUTH ? 0 : 6));
*(uint32_t *) (p + 2) = htonl((state == RADIUSJUSTAUTH ? 0 : 1)); // PPP
@ -517,7 +517,7 @@ static void handle_avpair(sessionidt s, uint8_t *avp, int len)
}
else
return;
// Run hooks
{
struct param_radius_response p = { &tunnel[session[s].tunnel], &session[s], (char *) key, (char *) value };
@ -709,7 +709,7 @@ void processrad(uint8_t *buf, int len, char socket_index)
{
LOG(3, s, session[s].tunnel, " Radius reply contains route for %s/%d\n",
fmtaddr(htonl(ip), 0), bits);
session[s].route[routes].ip = ip;
session[s].route[routes].prefixlen = bits;
routes++;
@ -895,7 +895,7 @@ void processrad(uint8_t *buf, int len, char socket_index)
memcpy(strtemp, (p + 3), lentemp);
if (!rad_tunnel_pwdecode(strtemp, &lentemp, config->radiussecret, radius[r].auth))
{
LOG_HEX(3, "Error Decode Tunnel-Password, Dump Radius reponse:", p, p[1]);
LOG_HEX(3, "Error Decode Tunnel-Password, Dump Radius response:", p, p[1]);
continue;
}
@ -1276,7 +1276,7 @@ void processdae(uint8_t *buf, int len, struct sockaddr_in *addr, int alen, struc
LOG(3, s, t, " DAE Change %d (%s)\n", s, session[s].user);
r_code = CoAACK;
// reset
{
struct param_radius_reset p = { &tunnel[session[s].tunnel], &session[s] };