search for: esc_authorisation

Displaying 1 result from an estimated 1 matches for "esc_authorisation".

2011 Apr 29
4
You don't check for malloc failure
...11 @@ -172,11 +172,17 @@ unsigned len = strlen(relay->username) + strlen(relay->password) + 2; auth_header = malloc (len); + if (auth_header == NULL) { + abort(); + } snprintf (auth_header, len, "%s:%s", relay->username, relay->password); esc_authorisation = util_base64_encode(auth_header); free(auth_header); len = strlen (esc_authorisation) + 24; auth_header = malloc (len); + if (auth_header == NULL) { + abort(); + } snprintf (auth_header, len, "Authorization: Basic %s\r\n", esc_authori...