Skip to content

Commit f2f31c7

Browse files
committed
Add assert
1 parent ada3c56 commit f2f31c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/mysqlnd/mysqlnd_auth.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ mysqlnd_auth_change_user(MYSQLND_CONN_DATA * const conn,
484484
}
485485
}
486486
if (ret == PASS) {
487+
ZEND_ASSERT(conn->username.s != user && conn->password.s != passwd);
487488
mysqlnd_set_persistent_string(&conn->username, user, user_len, conn->persistent);
488489

489490
char * tmp = mnd_pestrdup(passwd, conn->persistent);

0 commit comments

Comments
 (0)