[mw-devel] [Git][arthur/mw][master] Use the correct mask and shift to get attacker protection

Andrew Price welshbyte at sucs.org
Wed Oct 18 13:24:55 BST 2017


Andrew Price pushed to branch master at Justin Mitchell / mw


Commits:
3a1f2541 by Andrew Price at 2017-10-18T13:22:33+01:00
Use the correct mask and shift to get attacker protection

Ref: #12

- - - - -


1 changed file:

- src/server/actions.c


Changes:

=====================================
src/server/actions.c
=====================================
--- a/src/server/actions.c
+++ b/src/server/actions.c
@@ -67,7 +67,7 @@ void accept_action(ipc_connection_t *conn, ipc_message_t *msg)
 
 	/* what are the protection levels */
 	int prot_vi = (victim.record.chatprivs & CP_PROTMASK) >> CP_PROTSHIFT;
-	int prot_at = (attacker.record.chatprivs & CM_PROTMASK) >> CM_PROTSHIFT;
+	int prot_at = (attacker.record.chatprivs & CP_PROTMASK) >> CP_PROTSHIFT;
 	if (!cp_test(&attacker, CP_PROTECT)) prot_at = 0;
 	if (prot_vi == 0 && cm_test(&victim, CM_PROTECTED)) prot_vi = 1;
 



View it on GitLab: https://projects.sucs.org/arthur/mw/commit/3a1f25417777d878806dd9234943418c34cc89c7

---
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/3a1f25417777d878806dd9234943418c34cc89c7
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20171018/b83f7ff6/attachment.html>


More information about the mw-devel mailing list