mirror of
https://github.com/bgp/bgpq4
synced 2025-02-28 08:53:11 +00:00
bugfix: shall check reply code for !s sources command too..
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,3 +1,6 @@
|
||||
untagged yet (2015-06-26)
|
||||
- bugfix: F source(s) unavailable message from IRRD was ignored
|
||||
|
||||
0.1.31 (2015-06-23)
|
||||
- pipelining mode now counts buffered requests and issues dequeue
|
||||
when new request can overflow allocated buffer. So, bgpq3 shall no
|
||||
|
||||
@@ -390,7 +390,7 @@ bgpq_pipeline(FILE* f, int (*callback)(char*, void*), void* udata,
|
||||
};
|
||||
};
|
||||
|
||||
SX_DEBUG(debug_expander,"expander: sending '%s' (queued %i of %i)\n",
|
||||
SX_DEBUG(debug_expander,"expander: sending '%s' (queued %i of %i)\n",
|
||||
request, d->qsize, d->socksize);
|
||||
|
||||
bp=malloc(sizeof(struct bgpq_prequest));
|
||||
@@ -668,6 +668,11 @@ bgpq_expand(struct bgpq_expander* b)
|
||||
snprintf(sources,sizeof(sources),"!s%s\n", b->sources);
|
||||
fwrite(sources,strlen(sources),1,f);
|
||||
fgets(sources,sizeof(sources),f);
|
||||
if(sources[0]!='C') {
|
||||
sx_report(SX_ERROR, "Invalid sources '%s': %s\n", b->sources,
|
||||
sources);
|
||||
exit(1);
|
||||
};
|
||||
};
|
||||
|
||||
if(b->identify) {
|
||||
|
||||
Reference in New Issue
Block a user