summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2015-01-18 11:37:45 -0200
committershennetsind <ind@henn.et>2015-01-18 11:37:45 -0200
commitd0725afa8363b5f7b0612e087b48013d39339039 (patch)
tree3f521b45f4b0f0d3e7dee31cacfdd78d7be867ab /src/map/intif.c
parenta3c4d675ba19df385be5d1e3966c61de7186da57 (diff)
downloadhercules-d0725afa8363b5f7b0612e087b48013d39339039.tar.gz
hercules-d0725afa8363b5f7b0612e087b48013d39339039.tar.bz2
hercules-d0725afa8363b5f7b0612e087b48013d39339039.tar.xz
hercules-d0725afa8363b5f7b0612e087b48013d39339039.zip
Fixing 38 issues
Addressing out of bounds read/write, pointless null checks on already deferenced variables, dead code. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 73fb648ae..aac04df33 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -1248,9 +1248,6 @@ void intif_parse_GuildBasicInfoChanged(int fd) {
int idx, max;
struct guild_skill *gs = (struct guild_skill *)RFIFOP(fd,10);
- if( gs == NULL )
- return;
-
idx = gs->id - GD_SKILLBASE;
max = guild->skill_get_max(gs->id);
if( gs->lv > max )