]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
!fixup: callerid: Logic error in checksum processing
authorRuss Meyerriecks <rmeyerreicks@digium.com>
Mon, 17 Mar 2014 21:54:18 +0000 (21:54 +0000)
committerRuss Meyerriecks <rmeyerreicks@digium.com>
Mon, 17 Mar 2014 21:54:18 +0000 (21:54 +0000)
Fixes syntax error in previous commit :-(

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@410748 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/callerid.c

index ecfb0b6e271bc5225dce17027666f2d37c088883..4fab07d2cb7729e1b7ed217eb592fb029295b602 100644 (file)
@@ -621,7 +621,7 @@ int callerid_feed(struct callerid_state *cid, unsigned char *ubuf, int len, form
                                }
                                break;
                        case 5: /* Check checksum */
-                               if ((b + cid->cksum) & 0xff)) {
+                               if ((b + cid->cksum) & 0xff) {
                                        ast_log(LOG_NOTICE, "Caller*ID failed checksum\n");
                                        /* Try again */
                                        cid->sawflag = 0;