mcastmngr: probable fix for rpcd crash

This commit is contained in:
Vivek Kumar Dutta 2024-09-12 18:06:36 +05:30
parent 5fd9145a27
commit 964a1008fd
3 changed files with 13 additions and 3 deletions

View file

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=mcastmngr
PKG_VERSION:=1.2.4
PKG_VERSION:=1.2.5
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
LOCAL_DEV:=0

View file

@ -125,7 +125,12 @@ case "$1" in
call)
case "$2" in
stats)
read_mcast_stats
out="$(read_mcast_stats)"
if [ -z "${out}" ]; then
echo '{}'
else
echo ${out}
fi
;;
esac
;;

View file

@ -146,7 +146,12 @@ case "$1" in
call)
case "$2" in
stats)
read_mcast_stats
out="$(read_mcast_stats)"
if [ -z "${out}" ]; then
echo '{}'
else
echo "${out}"
fi
;;
esac
;;