Skip to content

Commit

Permalink
login6: assert dpb length matches projected length
Browse files Browse the repository at this point in the history
  • Loading branch information
real-dam committed Oct 25, 2011
1 parent 4f1ba4c commit 0572008
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbdimp.c
Expand Up @@ -463,6 +463,8 @@ int dbd_db_login6(SV *dbh, imp_dbh_t *imp_dbh, char *dbname, char *uid,

dpb_length = dpb - dpb_buffer;

assert(dpb_length == buflen);

DBI_TRACE_imp_xxh(imp_dbh, 3, (DBIc_LOGPIO(imp_dbh), "dbd_db_login6: attaching to database %s..\n", database));

isc_attach_database(status, /* status vector */
Expand Down

0 comments on commit 0572008

Please sign in to comment.