]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-sql/sql-types.h
benign buffer overflow fix (ITS#1964)
[openldap] / servers / slapd / back-sql / sql-types.h
index 45af97e827e49ec35fe14854b4df0cd970301d1b..9723d1e09bcf495caf7581cd440cdf9a64b8b665 100644 (file)
@@ -2,7 +2,7 @@
 #define __BACKSQL_SQL_TYPES_H__
 
 /*
- *      Copyright 1999, Dmitry Kovalev (zmit@mail.ru), All rights reserved.
+ *      Copyright 1999, Dmitry Kovalev <mit@openldap.org>, All rights reserved.
  *
  *      Redistribution and use in source and binary forms are permitted only
  *      as authorized by the OpenLDAP Public License.  A copy of this
 #include <sql.h>
 #include <sqlext.h>
 
-typedef struct
-{
- SWORD ncols;
- char** col_names;
- UDWORD *col_prec;
- char** cols;
- SQLINTEGER* is_null;
-}BACKSQL_ROW_NTS;
+typedef struct {
+       SWORD           ncols;
+       BerVarray       col_names;
+       UDWORD          *col_prec;
+       char            **cols;
+       SQLINTEGER      *value_len;
+} BACKSQL_ROW_NTS;
+
+#endif /* __BACKSQL_SQL_TYPES_H__ */
 
-#endif
\ No newline at end of file