Bug fixes.
[yaz-moved-to-github.git] / odr / odr_int.c
index df4655e..ffb41af 100644 (file)
@@ -4,7 +4,10 @@
  * Sebastian Hammer, Adam Dickmeiss
  *
  * $Log: odr_int.c,v $
- * Revision 1.1  1995-02-02 16:21:53  quinn
+ * Revision 1.2  1995-02-07 14:13:45  quinn
+ * Bug fixes.
+ *
+ * Revision 1.1  1995/02/02  16:21:53  quinn
  * First kick.
  *
  */
@@ -25,7 +28,10 @@ int odr_integer(ODR o, int **p, int opt)
        o->t_tag = ODR_INTEGER;
     }
     if ((res = ber_tag(o, *p, o->t_class, o->t_tag, &cons)) < 0)
+    {
+       *p = 0;
        return 0;
+    }
     if (!res)
     {
        *p = 0;