FIx bug in ndn_encodeBinaryXmlData: need to return error for an error, not success.
diff --git a/ndn-cpp/c/encoding/binary-xml-data.c b/ndn-cpp/c/encoding/binary-xml-data.c
index 37513f9..4b75fd8 100644
--- a/ndn-cpp/c/encoding/binary-xml-data.c
+++ b/ndn-cpp/c/encoding/binary-xml-data.c
@@ -137,7 +137,7 @@
     return error;
   
   if ((error = encodeSignature(&data->signature, encoder)))
-    return NDN_ERROR_success;
+    return error;
   
   *signedFieldsBeginOffset = encoder->offset;
 
@@ -145,7 +145,7 @@
     return error;
   
   if ((error = encodeSignedInfo(&data->signedInfo, encoder)))
-    return NDN_ERROR_success;
+    return error;
 
   if ((error = ndn_BinaryXmlEncoder_writeBlobDTagElement
       (encoder, ndn_BinaryXml_DTag_Content, data->content, data->contentLength)))