diff -r ce4cfc1cb1b6 -r 7fd5f0de6c59 apps/dtnquery/dtnquery.c --- a/apps/dtnquery/dtnquery.c Wed Jun 29 12:23:07 2011 +0100 +++ b/apps/dtnquery/dtnquery.c Wed Jun 29 12:44:26 2011 +0100 @@ -381,7 +381,7 @@ } // if no reply-to eid set, use the src eid - if (reply_eid_name == NULL) + if (*reply_eid_name == NULL) strncpy(reply_eid_name, src_eid_name, PATH_MAX); return 0;