projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow decoding of zero-length OIDs, but reject OIDs longer than
[yaz-moved-to-github.git]
/
src
/
odr_oid.c
diff --git
a/src/odr_oid.c
b/src/odr_oid.c
index
6eb7dd8
..
5b579cc
100644
(file)
--- a/
src/odr_oid.c
+++ b/
src/odr_oid.c
@@
-1,8
+1,8
@@
/*
/*
- * Copyright (c) 1995-2004, Index Data
+ * Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
* See the file LICENSE for details.
*
- * $Id: odr_oid.c,v 1.4 2004-10-15 00:19:00 adam Exp $
+ * $Id: odr_oid.c,v 1.6 2005-05-26 21:46:40 adam Exp $
*/
/**
* \file odr_oid.c
*/
/**
* \file odr_oid.c
@@
-52,5
+52,5
@@
int odr_oid(ODR o, Odr_oid **p, int opt, const char *name)
}
if (o->direction == ODR_DECODE)
*p = (int *)odr_malloc(o, OID_SIZE * sizeof(**p));
}
if (o->direction == ODR_DECODE)
*p = (int *)odr_malloc(o, OID_SIZE * sizeof(**p));
- return ber_oidc(o, *p);
+ return ber_oidc(o, *p, OID_SIZE);
}
}