From: Stephen Turner Date: Wed, 24 Oct 2012 17:31:37 +0000 (-0700) Subject: mvrp: fix string parsing bug X-Git-Tag: submit/tizen/20130820.101009~36^2^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a23063cbe181cb955e6b676d78ccb66f8ba24939;p=profile%2Fivi%2FOpenAVB.git mvrp: fix string parsing bug --- diff --git a/daemons/mrpd/mvrp.c b/daemons/mrpd/mvrp.c index bcaa719..827324b 100644 --- a/daemons/mrpd/mvrp.c +++ b/daemons/mrpd/mvrp.c @@ -1023,7 +1023,8 @@ int mvrp_dumptable(struct sockaddr_in *client) } -/* S-L Withdraw a listener status */ +/* V+? - JOIN a VID + * V++ NEW a VID (XXX: note network disturbance) */ int mvrp_cmd_parse_vid(char *buf, int buflen, uint16_t * attribute, int *err_index) { @@ -1079,7 +1080,7 @@ int mvrp_recv_cmd(char *buf, int buflen, struct sockaddr_in *client) */ if (strncmp(buf, "V??", 3) == 0) { mvrp_dumptable(client); - } else if (strncmp(buf, "V--", 3)) { + } else if (strncmp(buf, "V--", 3) == 0) { rc = mvrp_cmd_parse_vid(buf, buflen, &vid_param, &err_index); if (rc) goto out_ERP;