Permalink
Browse files

Fixing bug oremj found, neeed to allocate INSERT string.

  • Loading branch information...
1 parent 7480f3d commit 45b99b28ff4850fb53f4837f24d671bf070f80af @ozten ozten committed Dec 20, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugins/session.c
View
@@ -90,7 +90,8 @@ int create_session(const sasl_utils_t *utils, const char *assertion, const char
char email_esc[(strlen(email) * 2) + 1];
char *insert_email = "INSERT INTO browserid_session (digest, email) "
"VALUES (MD5('%s'), '%s')";
- char insert_email_esc[((strlen(assertion) + strlen(email)) * 2) + 1];
+ char insert_email_esc[((strlen(assertion) + strlen(email)) * 2) +
+ strlen(insert_email) + 1];
int rv = 0;
conn = _connect(utils);

0 comments on commit 45b99b2

Please sign in to comment.