diff --git a/libmport/info.c b/libmport/info.c index 4047ec7..2a7d1d3 100644 --- a/libmport/info.c +++ b/libmport/info.c @@ -77,7 +77,7 @@ mport_info(mportInstance *mport, const char *packageName) { return (NULL); } - if (mport_moved_lookup(mport, packageName, &movedEntries) != MPORT_OK) { + if (packs != NULL && mport_moved_lookup(mport, (*packs)->origin, &movedEntries) != MPORT_OK) { SET_ERROR(MPORT_ERR_FATAL, "The moved lookup failed."); return (NULL); }