|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: ber.c,v 1.6 2019/05/12 20:25:10 rob Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: ber.c,v 1.7 2019/05/16 21:12:33 rob Exp $ */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2007, 2012 Reyk Floeter <reyk@openbsd.org> |
|
|
* Copyright (c) 2007, 2012 Reyk Floeter <reyk@openbsd.org> |
|
@ -293,7 +293,7 @@ ber_get_string(struct ber_element *elm, char **s) |
|
|
{ |
|
|
{ |
|
|
if (elm->be_encoding != BER_TYPE_OCTETSTRING) |
|
|
if (elm->be_encoding != BER_TYPE_OCTETSTRING) |
|
|
return -1; |
|
|
return -1; |
|
|
/* Some components use getstring on binary data containing \0 */ |
|
|
|
|
|
|
|
|
/* XXX some components use getstring on binary data containing \0 */ |
|
|
#if 0 |
|
|
#if 0 |
|
|
if (memchr(elm->be_val, '\0', elm->be_len) != NULL) |
|
|
if (memchr(elm->be_val, '\0', elm->be_len) != NULL) |
|
|
return -1; |
|
|
return -1; |
|
|