summary refs log tree commit diff
path: root/pkgs/development/libraries/openslp/CVE-2016-4912.patch
blob: 06223deda89b09225e0b34fef0852bd733dd0255 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/common/slp_xmalloc.c
+++ b/common/slp_xmalloc.c
@@ -206,7 +206,7 @@ void * _xrealloc(const char * file, int line, void * ptr, size_t size)
          if (newptr == 0)
             return 0;
          memcpy(newptr, ptr, x->size);
-         _xfree(file, line, x);
+         _xfree(file, line, ptr);
       }
       return newptr;
    }