abisip-find: use protocol constant

Use library define instead of directly using hardcoded value.

Change-Id: Ie9b8bc55bf40cf005434f27e205d47ffab959413
This commit is contained in:
Max 2016-11-10 18:29:50 +01:00 committed by Harald Welte
parent 7d3093506a
commit c04c6ed4af
1 changed files with 2 additions and 2 deletions

View File

@ -138,8 +138,8 @@ static int read_response(int fd)
if (len < 0)
return len;
/* 2 bytes length, 1 byte protocol (0xfe) */
if (buf[2] != 0xfe)
/* 2 bytes length, 1 byte protocol */
if (buf[2] != IPAC_PROTO_IPACCESS)
return 0;
if (buf[4] != IPAC_MSGT_ID_RESP)