Summary: Asterisk PBX
Summary(pl.UTF-8): Centralka (PBX) Asterisk
Name: asterisk
-Version: 1.8.23.1
+Version: 1.8.24.0
Release: %{rel}%{?with_bristuff:.bristuff}
License: GPL v2
Group: Applications/System
Source0: http://downloads.digium.com/pub/asterisk/releases/%{name}-%{version}.tar.gz
-# Source0-md5: 345a3801d536941d985106af824cdb72
+# Source0-md5: 9baf82b95fc3f0b2c720d5b237ea4e54
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}.tmpfiles
}
snprintf(buf, sizeof(buf), "_COMMAND MATCHESARRAY \"%s\" \"%s\"", lf->buffer, ptr);
@@ -2303,7 +2303,7 @@
- /* Every step increment buffer 1024 bytes */
- maxmbuf += 1024;
- if (!(mbuf = ast_realloc(mbuf, maxmbuf))) {
+ new_mbuf = ast_realloc(mbuf, maxmbuf);
+ if (!new_mbuf) {
+ ast_free(mbuf);
- lf->cursor[0] = savechr;
+// lf->cursor[0] = savechr; // this is readonly variable
return (char *)(CC_ERROR);
}
- }
+ mbuf = new_mbuf;
@@ -2365,7 +2365,7 @@
ast_free(matches);
}