- memcpy (&rcm[1], emsg, elen);
- GNUNET_SERVER_notification_context_unicast (nc, client, &rcm->header, GNUNET_YES);
+ if (0 < elen)
+ memcpy (&rcm[1], emsg, elen);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Sending result %d (%s) to client\n",
+ (int) result_code,
+ emsg);
+ GNUNET_SERVER_notification_context_unicast (nc, client, &rcm->header, GNUNET_NO);