diff options
-rw-r--r-- | src/credential/plugin_gnsrecord_credential.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/credential/plugin_gnsrecord_credential.c b/src/credential/plugin_gnsrecord_credential.c index 1011664cd..daecc1bd4 100644 --- a/src/credential/plugin_gnsrecord_credential.c +++ b/src/credential/plugin_gnsrecord_credential.c | |||
@@ -127,7 +127,7 @@ credential_value_to_string (void *cls, | |||
127 | } | 127 | } |
128 | case GNUNET_GNSRECORD_TYPE_POLICY: | 128 | case GNUNET_GNSRECORD_TYPE_POLICY: |
129 | { | 129 | { |
130 | return GNUNET_strdup (data); | 130 | return GNUNET_strndup (data,data_size); |
131 | } | 131 | } |
132 | default: | 132 | default: |
133 | return NULL; | 133 | return NULL; |